/* ============================================
   FastDrop — Restaurant Registration Form + Toast Notifications
   No Gradient • FastDrop Brand • Dense Layout
   ============================================ */

/* --- 1. Font Import (Inter Only) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:slnt,wght@-10..0,100..900&display=swap');

/* --- 2. Design Tokens — FastDrop Brand --- */
:root {
    /* Brand Identity */
    --primary: #FF6B35;
    --primary-light: #FF8C5F;
    --secondary: #1A936F;
    --accent: #114B5F;

    /* iOS System Surfaces */
    --system-bg: #F2F2F7;
    --system-white: #FFFFFF;
    --system-grouped: #F9F9F9;
    --system-separator: rgba(60, 60, 67, 0.12);
    --system-fill: rgba(120, 120, 128, 0.08);

    /* Typography Colors */
    --label-primary: #1C1C1E;
    --label-secondary: #636366;
    --label-tertiary: #AEAEB2;
    --label-quaternary: #D1D1D6;

    /* Semantic */
    --system-green: #34C759;
    --system-red: #FF3B30;
    --system-blue: #007AFF;
    --system-orange: #FF9500;

    /* Elevation (Soft Layered) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Radius (Squircle) */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 34px;

    /* Spacing Grid (4px Base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* Typography */
    --font-system: 'Inter', -apple-system, sans-serif;
    --letter-spacing-tight: -0.022em;
    --letter-spacing-normal: -0.01em;
    --line-height-compact: 1.2;
    --line-height-readable: 1.45;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Transitions */
    --transition-fast: all 0.18s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- 3. Global Reset — Inter ONLY on text, NEVER on ::before/::after --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
input,
textarea,
button,
select,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
div,
li,
td,
th,
label {
    font-family: var(--font-system);
}

body {
    background: var(--system-bg);
    color: var(--label-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: var(--letter-spacing-normal);
    line-height: var(--line-height-readable);
}

/* 🔴 No gradient background glow — removed body::before pseudo-element */

::-webkit-scrollbar {
    display: none;
}

html,
body {
    overscroll-behavior-y: none;
}

/* --- 4. Container --- */
.container {
    width: 520px;
    max-width: 100%;
}

/* --- 5. App Screen (Squircle Card) --- */
.app-screen {
    width: 520px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    /* 34px */
    background: transparent;
    box-shadow: var(--shadow-float);
    animation: fadeIn 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 6. iOS Card (Glass) --- */
.ios-card {
    background: var(--glass-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: var(--radius-xl);
    /* 28px */
    padding: var(--space-6);
    /* 24px */
    border: 0.5px solid var(--glass-border);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.03),
        0 8px 24px rgba(0, 0, 0, 0.06);
}

/* --- 7. Header --- */
.app-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.app-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: var(--space-2);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.15));
}

.app-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--label-primary);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-compact);
}

.app-header p {
    color: var(--label-tertiary);
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: var(--space-1);
}

/* --- 8. Input Section --- */
.input-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    /* 12px */
}

/* --- 9. Input Grid (2-Column) --- */
.ios-input-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

/* --- 10. Input Field --- */
.input-field {
    display: flex;
    align-items: center;
    background: var(--system-white);
    border: 1.5px solid var(--system-separator);
    border-radius: var(--radius-sm);
    /* 10px */
    padding: 0 var(--space-4);
    transition: var(--transition-fast);
    height: 48px;
}

.input-field i {
    color: var(--label-tertiary);
    font-size: 0.9rem;
    min-width: 20px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.input-field input,
.input-field select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: var(--space-3) var(--space-2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--label-primary);
    letter-spacing: var(--letter-spacing-normal);
}

.input-field input::placeholder {
    color: var(--label-quaternary);
    font-weight: 400;
}

/* Focus State */
.input-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
    background: var(--system-white);
}

.input-field:focus-within i {
    color: var(--primary);
}

/* --- 11. Full-Width Field (Date) --- */
.form-group.full-width {
    grid-column: span 2;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.form-group.full-width input[type="date"] {
    width: 100%;
    padding: var(--space-3) var(--space-10) var(--space-3) var(--space-4);
    border: 1.5px solid var(--system-separator);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--label-primary);
    background: var(--system-white);
    outline: none;
    letter-spacing: var(--letter-spacing-normal);
    transition: var(--transition-fast);
    text-align: right;
    height: 48px;
}

.form-group.full-width input[type="date"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

/* Date picker icon */
.form-group.full-width input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: var(--space-4);
    cursor: pointer;
    opacity: 0.5;
}

/* Icon inside full-width field */
.form-group.full-width .input-icon {
    position: absolute;
    right: var(--space-4);
    color: var(--label-tertiary);
    font-size: 0.85rem;
    pointer-events: none;
}

/* --- 12. Visibility Toggle Button --- */
.visibility-btn {
    background: transparent;
    outline: none;
    border: none;
    cursor: pointer;
    color: var(--label-tertiary);
    font-size: 0.85rem;
    padding: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.visibility-btn:active {
    color: var(--primary);
}

/* --- 13. Primary Button (Solid — No Gradient) --- */
.ios-primary-btn {
    width: 100%;
    margin-top: var(--space-3);
    padding: var(--space-3);
    border: none;
    border-radius: var(--radius-md);
    /* 14px */
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: var(--letter-spacing-normal);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.22);
    transition: var(--transition-fast);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-primary-btn:active {
    transform: scale(0.97);
    background: var(--primary-light);
}

/* --- 14. Notice Box --- */
.notice {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    /* 10px */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--label-secondary);
}

.notice i {
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.notice a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* --- 15. Footer --- */
.app-footer {
    text-align: center;
    margin-top: var(--space-5);
    color: var(--label-tertiary);
    font-size: 0.78rem;
    font-weight: 500;
}

.app-footer .link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* =============================================
   iOS TOAST NOTIFICATION SYSTEM
   ============================================= */

/* --- 16. Notification Container --- */
.ios-notification-container {
    position: fixed;
    top: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    pointer-events: none;
}

/* --- 17. Toast Notification (Glass) --- */
.ios-toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    /* 12px 20px */
    border-radius: var(--radius-md);
    /* 14px */
    pointer-events: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.03);
    border: 0.5px solid var(--glass-border);
    animation: iosSlideDown 0.35s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Error Variant */
.ios-toast.error {
    border-left: 3px solid var(--system-red);
}

.ios-toast.error i {
    color: var(--system-red);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Success Variant */
.ios-toast.success {
    border-left: 3px solid var(--system-green);
}

.ios-toast.success i {
    color: var(--system-green);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Warning Variant */
.ios-toast.warning {
    border-left: 3px solid var(--system-orange);
}

.ios-toast.warning i {
    color: var(--system-orange);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Toast Text */
.ios-toast span {
    color: var(--label-primary);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: var(--line-height-readable);
    text-align: right;
}

/* --- 18. Toast Animation --- */
@keyframes iosSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Toast Exit Animation */
.ios-toast.exit {
    animation: iosSlideUp 0.25s ease-in forwards;
}

@keyframes iosSlideUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 480px) {
    .app-screen {
        width: 100%;
        border-radius: var(--radius-xl);
    }

    .ios-input-group {
        display: flex;
        flex-direction: column;
    }

    .ios-card {
        padding: var(--space-5);
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .app-header h2 {
        font-size: 1.15rem;
    }

    .app-logo {
        width: 56px;
        height: 56px;
    }

    .input-field {
        height: 44px;
    }

    .form-group.full-width input[type="date"] {
        height: 44px;
    }

    .ios-primary-btn {
        height: 44px;
        font-size: 0.9rem;
    }

    .ios-notification-container {
        width: 94%;
        top: var(--space-4);
    }
}

@media (min-width: 768px) {
    .ios-card {
        padding: var(--space-8);
    }
}