/* ═══════════════════════════════════════════════
   FOODARGO — Auth Pages
   Left: Product showcase | Right: Logo + Form
   ═══════════════════════════════════════════════ */

@import url('/css/fonts.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand-blue: #3D74B6;
    --brand-blue-dark: #2E5A91;
    --brand-blue-deeper: #1E3F6B;
    --brand-red: #DC3C22;
    --brand-red-dark: #B82F1A;
    --bg: #F5F5F5;
    --surface: #ffffff;
    --border: #E2E2E2;
    --text: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-muted: #A3A3A3;
    --success: #1A9E56;
    --danger: #DC3C22;
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--surface);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ═══ SPLIT LAYOUT ═════════════════════════════════ */
.auth-split {
    display: flex;
    min-height: 100vh;
}

/* ─── Left: Showcase Panel ─────────────────────── */
.auth-panel {
    width: 50%;
    flex-shrink: 0;
    background: var(--brand-blue);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.auth-panel-headline {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    max-width: 440px;
    position: relative;
    z-index: 2;
}

.auth-panel-desc {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 380px;
    position: relative;
    z-index: 2;
}

/* Mockup illustration */
.auth-panel-mockup {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    width: 100%;
    max-width: 420px;
}

.mockup-browser {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}

.mockup-topbar {
    background: #F0F0F0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D0D0D0;
}

.mockup-dot:first-child { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28CA42; }

.mockup-url {
    flex: 1;
    margin-left: 10px;
    background: white;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    color: #999;
    font-family: 'DM Sans', sans-serif;
}

.mockup-content {
    padding: 20px;
}

.mockup-header {
    background: var(--brand-blue);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-logo-circle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.25);
}

.mockup-header-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.35);
}

.mockup-line.w120 { width: 80px; }
.mockup-line.w80 { width: 50px; }

.mockup-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #ECECEC;
    border-radius: 8px;
}

.mockup-item-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #F0F0F0;
    flex-shrink: 0;
}

.mockup-item-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-item-line {
    height: 5px;
    border-radius: 3px;
    background: #E8E8E8;
}

.mockup-item-line.w100 { width: 100%; }
.mockup-item-line.w60 { width: 60%; }

.mockup-item-price {
    width: 36px;
    height: 8px;
    border-radius: 4px;
    background: var(--brand-blue);
    opacity: 0.3;
    flex-shrink: 0;
}

/* Stats under mockup */
.auth-panel-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.auth-stat {
    text-align: center;
}

.auth-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.auth-stat-label {
    font-size: 12px;
    opacity: 0.55;
    margin-top: 2px;
}

/* ─── Right: Form Panel ────────────────────────── */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: var(--surface);
    position: relative;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
}

/* Logo top of form */
.auth-form-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.auth-form-logo img {
    width: 8rem;
}

.auth-form-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.auth-form-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.auth-form-logo-text span { color: var(--brand-red); }

/* Form Header */
.auth-form-inner h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Flash */
.auth-flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-flash-success { background: #EDFBF3; color: var(--success); border: 1px solid #B7EBCF; }
.auth-flash-error { background: #FDECEA; color: var(--danger); border: 1px solid #F5C6BE; }

/* Fields */
.auth-form-group { margin-bottom: 20px; }

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.auth-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
    background: var(--surface);
}

.auth-form-group input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(61,116,182,0.08);
}

.auth-form-group input::placeholder { color: #CCCCCC; }

.auth-form-row { display: flex; gap: 14px; }
.auth-form-row .auth-form-group { flex: 1; }

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--brand-blue);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
    margin-top: 4px;
}

.auth-btn:hover { background: var(--brand-blue-dark); }
.auth-btn:active { transform: scale(0.985); }

.auth-btn-secondary {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
    margin-top: 10px;
}

.auth-btn-secondary:hover { border-color: var(--brand-blue); background: var(--brand-blue-light); }

/* Links */
.auth-links {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover { text-decoration: underline; }

.auth-forgot {
    text-align: right;
    margin-top: -14px;
    margin-bottom: 20px;
}

.auth-forgot a {
    font-size: 13px;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot a:hover { text-decoration: underline; }

/* Footer */
.auth-form-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ─── Mobile Header ────────────────────────────── */
.auth-mobile-header {
    display: none;
    background: var(--brand-blue);
    color: white;
    padding: 36px 24px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-mobile-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.auth-mobile-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    position: relative;
    z-index: 1;
}

.auth-mobile-logo span { color: var(--brand-red); }

.auth-mobile-tagline {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

/* ═══ RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 1100px) {
    .auth-panel { padding: 48px 36px; }
    .auth-panel-headline { font-size: 28px; }
    .auth-form-panel { padding: 40px 40px; }
}

@media (max-width: 860px) {
    .auth-split { flex-direction: column; }
    .auth-panel { display: none; }
    .auth-mobile-header { display: block; }

    .auth-form-panel {
        padding: 32px 24px 80px;
        justify-content: flex-start;
    }

    .auth-form-logo { margin-bottom: 32px; margin-top: 8px; }
    .auth-form-inner { max-width: 100%; }
    .auth-form-inner h1 { font-size: 22px; }

    .auth-form-group input { padding: 14px 16px; font-size: 16px; }
    .auth-form-row { flex-direction: column; gap: 0; }
    .auth-btn { padding: 15px; font-size: 16px; }

    .auth-form-footer { position: static; margin-top: 40px; }
}

@media (max-width: 380px) {
    .auth-mobile-header { padding: 30px 20px 26px; }
    .auth-mobile-logo { font-size: 22px; }
    .auth-form-panel { padding: 24px 18px 60px; }
}