/* ============================================================
   auth.css — Login / Forgot / Reset
   Layout: clean white split — illustration left, card right
   Colors: #417797 / #15415a from back-office report palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --p:        #417797;
    --pd:       #15415a;
    --pdd:      #0d2e40;
    --plight:   #e8f2f8;
    --plighter: #f0f6fa;

    --bg:       #f5f7fa;
    --white:    #ffffff;

    --text:     #1a2332;
    --sub:      #64748b;
    --label:    #94a3b8;
    --border:   #e2e8f0;
    --ibg:      #f1f5f9;

    --sh:       0 4px 24px rgba(0,0,0,0.07);
    --sh-card:  0 8px 40px rgba(0,0,0,0.10);

    --r-card:   20px;
    --r-input:  10px;
    --r-btn:    10px;

    --ff-head:  'Syne', sans-serif;
    --ff-body:  'Inter', sans-serif;
}

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

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--text);
}

#page-container,
#main-container {
    height: 100%;
    min-height: 100vh;
}

/* ════════════════════════════
   LAYOUT WRAP
════════════════════════════ */
.auth-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg);
}

/* ════════════════════════════
   LEFT  — illustration panel
════════════════════════════ */
.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
    position: relative;
    background: var(--white);
    /* subtle dot grid like the screenshot */
    background-image:
        radial-gradient(circle, #d1dde8 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
    overflow: hidden;
}

/* Large soft circle decoration — matches screenshot */
.auth-left::before {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 2px solid rgba(65,119,151,0.12);
    pointer-events: none;
    z-index: 0;
}
.auth-left::after {
    content: '';
    position: absolute;
    top: -80px;
    right: 60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid rgba(65,119,151,0.08);
    pointer-events: none;
    z-index: 0;
}

/* Left top logo */
.auth-left-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 0;
}
.auth-left-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.auth-left-logo-text {
    font-family: var(--ff-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--pd);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Illustration centered in remaining space */
.auth-left-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 20px;
}
.auth-left-body img {
    max-width: 88%;
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    /* slight drop shadow for depth */
    filter: drop-shadow(0 12px 32px rgba(65,119,151,0.10));
    animation: floatImg 5s ease-in-out infinite;
}
@keyframes floatImg {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* in auth.css — replace the existing .auth-left-footer rule */
.auth-left-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;   /* center both items */
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--label);
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    text-align: center;
}
.auth-left-footer strong { color: var(--sub); }
.auth-left-footer a {
    color: var(--p);           /* #417797 — matches your report primary */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s;
}
.auth-left-footer a:hover { color: var(--pd); }

/* ════════════════════════════
   RIGHT — form panel
════════════════════════════ */
.auth-right {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--bg);
    position: relative;
}

/* ════════════════════════════
   CARD
   Matches casino-stats-card:
   bg #fff, radius 18px,
   shadow 0 6px 25px rgba(0,0,0,0.08)
   border rgba(0,0,0,0.06)
════════════════════════════ */
.auth-card {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 44px 40px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--sh-card);
    border: 1px solid rgba(0,0,0,0.06);
    animation: cardIn 0.42s cubic-bezier(0.22,1,0.36,1) both;
    text-align: center;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo inside card */
.auth-card-logo {
    display: block;
    margin: 0 auto 22px;
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Card title */
.auth-card-title {
    font-family: var(--ff-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

/* Card subtitle */
.auth-card-sub {
    font-size: 0.845rem;
    color: var(--sub);
    font-weight: 400;
    margin: 0 0 28px;
    line-height: 1.55;
}

/* ════════════════════════════
   FORM FIELDS
════════════════════════════ */
.auth-field {
    position: relative;
    margin-bottom: 14px;
    text-align: left;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    background: var(--ibg);
    border: 1.5px solid transparent;
    border-radius: var(--r-input);
    font-family: var(--ff-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    -webkit-appearance: none;
}
.auth-input::placeholder { color: #b0bec5; }
.auth-input:focus {
    border-color: var(--p);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(65,119,151,0.12);
}

/* Left icon */
.auth-field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--label);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.2s;
}
.auth-field:focus-within .auth-field-icon { color: var(--p); }

/* Right toggle */
.auth-toggle-pw {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--label);
    display: flex;
    align-items: center;
    padding: 2px;
    transition: color 0.2s;
}
.auth-toggle-pw:hover { color: var(--p); }
.auth-has-toggle .auth-input { padding-right: 40px; }

/* ════════════════════════════
   BUTTON — exact .new-btn
════════════════════════════ */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 28px;
    background-color: #417797;
    background-image: linear-gradient(135deg, #417797 0%, #15415a 100%);
    border: none;
    border-radius: var(--r-btn);
    font-family: var(--ff-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(65,119,151,0.35);
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.auth-btn:hover {
    background-color: #15415a;
    background-image: linear-gradient(135deg, #1c4f6e 0%, #0d2e40 100%);
    box-shadow: 0 6px 20px rgba(65,119,151,0.45);
    transform: translateY(-1px);
    color: #fff !important;
}
.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(65,119,151,0.30);
}
.auth-btn svg { width: 15px; height: 15px; }

/* Full-width button variant */
.auth-btn-full {
    width: 100%;
    margin-top: 4px;
}

/* ════════════════════════════
   CARD FOOTER ROW
   (Forgot link + Sign In button)
════════════════════════════ */
.auth-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sub);
    text-decoration: none;
    transition: color 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.auth-link:hover { color: var(--p); }

.auth-link-primary {
    color: var(--p);
    font-weight: 600;
}
.auth-link-primary:hover { color: var(--pd); }

/* Back link centered */
.auth-back {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ════════════════════════════
   ALERTS
════════════════════════════ */
.auth-alert {
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 0.80rem;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    text-align: left;
}
.auth-alert svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.auth-alert-success {
    background: rgba(34,197,94,0.06);
    border-color: rgba(34,197,94,0.20);
    color: #166534;
}
.auth-alert-danger {
    background: rgba(239,68,68,0.05);
    border-color: rgba(239,68,68,0.16);
    color: #991b1b;
}

/* ════════════════════════════
   DIVIDER
════════════════════════════ */
.auth-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 991px) {
    .auth-left { display: none; }
    .auth-right {
        width: 100%;
        min-height: 100vh;
        padding: 32px 20px;
        background: var(--bg);
    }
    .auth-card {
        max-width: 420px;
        padding: 36px 28px 32px;
    }
}

@media (max-width: 480px) {
    .auth-card { padding: 30px 20px 26px; }
    .auth-card-actions { flex-direction: column-reverse; align-items: stretch; }
    .auth-btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════
   REDUCED MOTION
════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
