/* ============================================================
   MODRICPREDICT - AUTHENTICATION PAGES (LOGIN & REGISTER)
   2-Column Split Layout matching PassionPredict with brand tokens
   ============================================================ */

:root {
    --auth-brand-deep: #06301F;
    --auth-brand-mid: #0B462D;
    --auth-brand-primary: #10875A;
    --auth-brand-accent: #C7F04B;
    --auth-bg: #F8FAF8;
    --auth-card: #FFFFFF;
    --auth-line: #E3E9E4;
    --auth-ink: #0D1B16;
    --auth-muted: #5F7168;
    --auth-faint: #93A49B;
    --display: "Outfit", "Segoe UI", system-ui, sans-serif;
    --text: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

body.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--text);
    background-color: var(--auth-bg);
    color: var(--auth-ink);
    -webkit-font-smoothing: antialiased;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    width: 100%;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .auth-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* ------------------------------------------------------------
   LEFT COLUMN: BRANDED HERO ASIDE (DESKTOP)
   ------------------------------------------------------------ */

.auth-aside {
    display: none;
    position: relative;
    overflow: hidden;
    background-color: var(--auth-brand-deep);
    color: #FFFFFF;
}

@media (min-width: 1024px) {
    .auth-aside {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
    }
}

.auth-aside-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(6, 48, 31, 0.96) 0%, rgba(6, 48, 31, 0.85) 45%, rgba(6, 48, 31, 0.65) 100%),
        url('/images/stadium-night.jpg') center/cover no-repeat;
    z-index: 0;
}

.auth-glow {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(80px);
    z-index: 1;
}

.auth-glow-1 {
    top: 60px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: rgba(0, 229, 153, 0.22);
}

.auth-glow-2 {
    bottom: 50px;
    right: -20px;
    width: 240px;
    height: 240px;
    background: rgba(16, 135, 90, 0.26);
}

.auth-aside-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 100vh;
    padding: 48px 48px;
    box-sizing: border-box;
}

@media (min-width: 1280px) {
    .auth-aside-content {
        padding: 56px 64px;
    }
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.18s ease;
}

.auth-brand:hover {
    opacity: 0.9;
}

.auth-brand-text {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
}

.auth-aside-center {
    max-width: 440px;
    margin: auto 0;
    padding: 40px 0;
}

.auth-eyebrow {
    display: inline-block;
    font-family: var(--text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--auth-brand-accent);
    margin-bottom: 14px;
}

.auth-aside-heading {
    font-family: var(--display);
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.auth-highlight {
    color: var(--auth-brand-accent);
}

.auth-aside-desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 28px;
}

.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.4;
}

.auth-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.auth-dot-accent {
    background: var(--auth-brand-accent);
    box-shadow: 0 0 8px rgba(199, 240, 75, 0.6);
}

.auth-dot-green {
    background: var(--auth-brand-accent);
}

.auth-dot-white {
    background: var(--auth-brand-accent);
}

.auth-aside-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* ------------------------------------------------------------
   RIGHT COLUMN: AUTH MAIN FORM SECTION
   ------------------------------------------------------------ */

.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--auth-bg);
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .auth-main {
        padding: 56px 32px;
    }
}

@media (min-width: 1024px) {
    .auth-main {
        padding: 60px 48px;
    }
}

.auth-form-container {
    width: 100%;
    max-width: 520px;
}

/* Mobile top header */
.auth-mobile-header {
    display: block;
    width: 100%;
    max-width: 520px;
    margin-bottom: 24px;
    text-align: left;
}

@media (min-width: 1024px) {
    .auth-mobile-header {
        display: none;
    }
}

.auth-mobile-brand {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 800;
    color: var(--auth-brand-deep);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.auth-mobile-eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--auth-brand-primary);
    margin-bottom: 4px;
}

.auth-mobile-heading {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 800;
    color: var(--auth-ink);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.auth-mobile-desc {
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0;
    line-height: 1.5;
}

/* Switch Links */
.auth-switch-desktop {
    display: none;
    font-size: 14px;
    color: var(--auth-muted);
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .auth-switch-desktop {
        display: block;
    }
}

.auth-switch-mobile {
    display: block;
    font-size: 13.5px;
    color: var(--auth-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--auth-line);
}

@media (min-width: 1024px) {
    .auth-switch-mobile {
        display: none;
    }
}

.auth-link-bold {
    font-weight: 700;
    color: var(--auth-brand-deep);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
    margin-left: 4px;
}

.auth-link-bold:hover {
    color: var(--auth-brand-primary);
}

/* Auth Card */
.auth-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 48px -20px rgba(6, 48, 31, 0.12);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .auth-card {
        padding: 40px 36px;
        border-radius: 28px;
    }
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.auth-alert-success {
    background: #E2F3E9;
    color: #0C5C3C;
    border: 1px solid rgba(16, 135, 90, 0.25);
}

.auth-alert-danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Form controls */
.auth-form {
    width: 100%;
}

.auth-group {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: 6px;
}

.auth-label-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid var(--auth-line);
    background: #F8FAF8;
    padding: 12px 16px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--auth-ink);
    outline: none;
    transition: all 0.15s ease;
}

.auth-input::placeholder {
    color: var(--auth-faint);
}

.auth-input:focus {
    border-color: var(--auth-brand-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(16, 135, 90, 0.15);
}

.auth-input.is-invalid {
    border-color: #D6503F;
    background: #FFF9F9;
    box-shadow: 0 0 0 3px rgba(214, 80, 63, 0.12);
}

.auth-password-wrapper .auth-input {
    padding-right: 44px;
}

.auth-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--auth-faint);
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
    display: grid;
    place-items: center;
    transition: color 0.15s ease;
}

.auth-pwd-toggle:hover {
    color: var(--auth-ink);
}

.auth-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #D6503F;
    margin-top: 6px;
    font-weight: 500;
}

/* 2-column input grid */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 600px) {
    .auth-grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* Checkboxes */
.auth-remember-row,
.auth-terms-row {
    margin: 16px 0 20px;
    display: flex;
    align-items: flex-start;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--auth-muted);
    user-select: none;
    line-height: 1.4;
}

.auth-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--auth-brand-primary);
    cursor: pointer;
    margin: 0;
}

.auth-terms-link {
    color: var(--auth-brand-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.auth-terms-link:hover {
    color: var(--auth-brand-primary);
}

/* Submit button */
.auth-submit-wrap {
    margin-top: 10px;
}

.auth-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    background: var(--auth-brand-primary);
    color: #FFFFFF;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15.5px;
    padding: 13px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 135, 90, 0.3);
}

.auth-submit-btn:hover {
    background: var(--auth-brand-accent);
    color: var(--auth-brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 229, 153, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Bottom help row */
.auth-help-row {
    text-align: center;
    margin-top: 24px;
    font-size: 13.5px;
    color: var(--auth-muted);
}

.auth-help-row p {
    margin: 0;
}

.auth-help-row a {
    font-weight: 600;
    color: var(--auth-brand-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-help-row a:hover {
    color: var(--auth-brand-deep);
    text-decoration: underline;
}
