/* Login, forgot-password and reset-password pages — Gastrolytics dark theme.
   Colour tokens mirror css/main.css (these pages don't load main.css). */
:root {
    --gc-navy:      #14141F;
    --gc-gold:      #E8A838;
    --gc-gold-soft: rgba(232,168,56,0.12);
    --gc-border:    rgba(255,255,255,0.08);
    --gc-border-md: rgba(255,255,255,0.14);
    --gc-bg-page:   #0D0D14;
    --gc-bg-card:   #1A1A26;
    --gc-bg-muted:  #22222F;
    --gc-text:      #F2F1EC;
    --gc-text-muted:#9C9CAA;
    --gc-text-hint: #6C6C7A;
    --gc-good-bg:   rgba(59,209,106,0.14);
    --gc-good-fg:   #6EDB93;
    --gc-bad-bg:    rgba(224,74,74,0.14);
    --gc-bad-fg:    #E86A6A;
    --gc-radius-md: 8px;
    --gc-radius-lg: 14px;
}

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 60% 50% at 15% 10%, rgba(232,168,56,0.08), transparent 70%),
        radial-gradient(ellipse 50% 45% at 90% 95%, rgba(95,168,232,0.06), transparent 70%),
        var(--gc-bg-page);
    color: var(--gc-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
}

/* ── OUTER CARD ── */
.login-container {
    display: flex;
    width: 100%;
    max-width: 880px;
    min-height: 540px;
    border-radius: var(--gc-radius-lg);
    border: 0.5px solid var(--gc-border-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    padding: 0;
    text-align: left;
}

/* ── LEFT PANEL ── */
.login-left-side {
    width: 44%;
    background: var(--gc-navy);
    border-right: 0.5px solid var(--gc-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2.1rem;
    position: relative;
    overflow: hidden;
}

/* subtle grid texture + gold glow */
.login-left-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.login-left-side::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    right: -140px; bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,168,56,0.18), transparent 70%);
    pointer-events: none;
}

.gc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.gc-brand-icon {
    width: 34px; height: 34px;
    background: var(--gc-gold);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: var(--gc-navy);
}

.gc-brand-name { font-size: 17px; font-weight: 500; color: #fff; }
.gc-brand-sub  { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; }

.gc-hero { position: relative; z-index: 1; }
.gc-hero h2 {
    font-size: 24px; font-weight: 500;
    color: #fff; line-height: 1.35;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}
.gc-hero h2 em { font-style: normal; color: var(--gc-gold); }
.gc-hero p { font-size: 12.5px; color: rgba(255,255,255,0.5); line-height: 1.7; margin: 0; }

.gc-features { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }

.gc-feature { display: flex; align-items: center; gap: 10px; }

.gc-feature-dot {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 7px;
    background: var(--gc-gold-soft);
    border: 0.5px solid rgba(232,168,56,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: var(--gc-gold);
}

.gc-feature span { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.3; }

/* ── RIGHT PANEL ── */
.login-right-side {
    width: 56%;
    background: var(--gc-bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.75rem;
}

/* ── HEADER ── */
.login-header {
    margin-bottom: 2rem;
    text-align: left;
}

.login-header i { display: none; }

.login-header h2 {
    font-size: 21px;
    font-weight: 500;
    color: var(--gc-text);
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}

.login-header p {
    font-size: 12px;
    color: var(--gc-text-muted);
    margin: 0;
}

/* ── FORM ── */
.form-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gc-text-muted);
    margin-bottom: 5px;
    display: block;
}

.form-control {
    height: 40px;
    padding: 0 11px;
    border: 0.5px solid var(--gc-border-md) !important;
    border-radius: var(--gc-radius-md) !important;
    font-size: 13px;
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--gc-bg-muted);
    color: var(--gc-text);
    transition: border-color 0.15s, background 0.15s;
    box-shadow: none !important;
}

.form-control::placeholder { color: var(--gc-text-hint); opacity: 1; }

.form-control:focus {
    border-color: var(--gc-gold) !important;
    background: var(--gc-bg-page);
    color: var(--gc-text);
    box-shadow: none !important;
    outline: none;
}

/* Keep browser autofill from painting inputs light yellow/white */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--gc-text);
    -webkit-box-shadow: 0 0 0 1000px var(--gc-bg-muted) inset !important;
    caret-color: var(--gc-text);
}

/* password toggle */
.input-group .form-control {
    border-right: none !important;
    border-radius: var(--gc-radius-md) 0 0 var(--gc-radius-md) !important;
}

.input-group-text {
    background: var(--gc-bg-muted);
    border: 0.5px solid var(--gc-border-md);
    border-left: none;
    border-radius: 0 var(--gc-radius-md) var(--gc-radius-md) 0 !important;
    cursor: pointer;
}

#toggle_password {
    cursor: pointer;
    color: var(--gc-text-hint);
    transition: color 0.15s;
}
#toggle_password:hover { color: var(--gc-gold); }

/* ── LOGIN BUTTON ── */
.btn-primary,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:focus {
    background: var(--gc-gold) !important;
    border-color: var(--gc-gold) !important;
    color: var(--gc-navy) !important;
    border-radius: var(--gc-radius-md) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    height: 42px;
    width: 100%;
    margin-top: 1.25rem;
    transition: filter 0.15s, box-shadow 0.15s !important;
    box-shadow: none !important;
    font-family: 'DM Sans', system-ui, sans-serif;
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: none !important;
    box-shadow: 0 6px 20px rgba(232,168,56,0.25) !important;
    background: var(--gc-gold) !important;
    border-color: var(--gc-gold) !important;
    color: var(--gc-navy) !important;
}

/* ── MESSAGES ── */
.text-danger,
.invalid-box {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gc-bad-fg) !important;
    background: var(--gc-bad-bg);
    border: 0.5px solid rgba(224,74,74,0.3);
    border-radius: var(--gc-radius-md);
    padding: 8px 12px;
    margin: 0 0 4px 0;
}

.text-danger::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    flex-shrink: 0;
}

.text-success,
.sent-box {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gc-good-fg) !important;
    background: var(--gc-good-bg);
    border: 0.5px solid rgba(59,209,106,0.3);
    border-radius: var(--gc-radius-md);
    padding: 8px 12px;
    margin: 0 0 4px 0;
}

.text-success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    flex-shrink: 0;
}

/* boxes on the password pages carry their own icon and longer text */
.sent-box, .invalid-box { align-items: flex-start; padding: 12px 14px; }
.sent-box { margin-bottom: 1rem; }
.sent-box i, .invalid-box i { margin-top: 1px; flex-shrink: 0; }

/* ── LINKS / HINTS ── */
.back-link {
    font-size: 12px;
    color: var(--gc-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--gc-gold); }

.pw-hint { font-size: 11px; color: var(--gc-text-hint); margin-top: 4px; }

.forgot-password {
    margin-top: 0.75rem;
    font-size: 12px;
    text-align: right;
}

.forgot-password a {
    color: var(--gc-gold);
    text-decoration: none;
}
.forgot-password a:hover { text-decoration: underline; }

.login-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 0.5px solid var(--gc-border);
    font-size: 11px;
    color: var(--gc-text-hint);
    text-align: center;
}
.login-footer p { margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .login-container { flex-direction: column; max-width: 440px; min-height: 0; }
    .login-left-side { width: 100%; padding: 1.5rem; border-right: none; border-bottom: 0.5px solid var(--gc-border); }
    .gc-hero, .gc-features { display: none; }
    .login-right-side { width: 100%; padding: 2rem 1.5rem; }
}
