/*
 * Luxora Gate Portal — Auth Screens
 * Visual identity: aligned with moderntheme front-end
 *
 * Palette:
 *   --primary-color: #b7a56a  (gold)
 *   --primary-dark:  #9d8c54
 *   --secondary:     #2c2518  (dark brown)
 *   --accent:        #e8dfc4  (warm beige)
 *   --bg-light:      #f8f6ef
 *   --text-primary:  #2c2518
 *   --text-secondary:#5b523d
 *   --border-color:  #d8cdaa
 *
 * Font: Inter, system-ui, sans-serif
 * Framework: Bootstrap 5.3 (loaded by Mix via dist/auth/styles.css)
 */

/* ─────────────────────────────────────
   Root Variables
   ───────────────────────────────────── */
:root {
    --auth-primary: #b7a56a;
    --auth-primary-dark: #9d8c54;
    --auth-primary-rgb: 183, 165, 106;
    --auth-secondary: #2c2518;
    --auth-accent: #e8dfc4;
    --auth-bg: #f8f6ef;
    --auth-card: #ffffff;
    --auth-card-border: #d8cdaa;
    --auth-text: #2c2518;
    --auth-text-secondary: #5b523d;
    --auth-muted: #8a7f6a;
    --auth-input-bg: #ffffff;
    --auth-input-border: #d0c9a8;
    --auth-input-focus-border: #b7a56a;
    --auth-radius: 14px;
    --auth-radius-sm: 8px;
    --auth-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --auth-shadow-card: 0 8px 32px rgba(44, 37, 24, 0.08);
    --auth-shadow-input-focus: 0 0 0 3px rgba(183, 165, 106, 0.18);
    --auth-transition: 0.2s ease;
}

/* ─────────────────────────────────────
   Base
   ───────────────────────────────────── */
.auth-login-register {
    background:
        radial-gradient(circle at 82% 10%, rgba(var(--auth-primary-rgb), 0.10), transparent 26%),
        radial-gradient(circle at 12% 82%, rgba(44, 37, 24, 0.06), transparent 24%),
        linear-gradient(180deg, #f8f5ee 0%, #f3efe5 100%);
    color: var(--auth-text);
    font-family: var(--auth-font);
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────
   Hero (left column)
   ───────────────────────────────────── */
.auth-login-register .hero-wrap {
    background:
        radial-gradient(circle at 24% 18%, rgba(var(--auth-primary-rgb), 0.20), transparent 20%),
        linear-gradient(165deg, #2a2216 0%, #1f1a12 58%, #15110c 100%);
    position: relative;
    overflow: hidden;
}

.auth-login-register .hero-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.00) 22%),
        radial-gradient(circle at 70% 70%, rgba(var(--auth-primary-rgb), 0.10), transparent 30%);
    pointer-events: none;
}

.auth-login-register .hero-wrap::after {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--auth-primary-rgb), 0.22) 20%, rgba(var(--auth-primary-rgb), 0.10) 50%, transparent 100%);
    pointer-events: none;
}

.auth-login-register .hero-mask {
    background: linear-gradient(135deg, rgba(27, 22, 16, 0.36), rgba(27, 22, 16, 0.18)) !important;
    opacity: 1 !important;
}

.auth-login-register .hero-bg {
    filter: saturate(0.78) contrast(1.03) brightness(0.88);
}

.auth-login-register .hero-content h1 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.auth-login-register .hero-content p {
    color: rgba(255, 255, 255, 0.76);
    max-width: 32rem;
}

.auth-login-register .hero-content .logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* ─────────────────────────────────────
   Content Card (right column)
   ───────────────────────────────────── */
.auth-login-register .auth-content-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 250, 245, 0.98) 100%);
    border: 1px solid rgba(var(--auth-primary-rgb), 0.18);
    border-radius: 18px;
    padding: 28px 28px 22px;
    box-shadow: 0 20px 48px rgba(44, 37, 24, 0.10), 0 2px 0 rgba(255, 255, 255, 0.65) inset;
    position: relative;
}

.auth-login-register .auth-content-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--auth-primary-rgb), 0.45) 50%, transparent 100%);
    pointer-events: none;
}

/* ─────────────────────────────────────
   Profile Switcher
   ───────────────────────────────────── */
.auth-login-register .auth-profile-switcher {
    margin-bottom: 1rem;
}

.auth-login-register .auth-profile-switcher__eyebrow {
    color: var(--auth-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.auth-login-register .auth-profile-switcher__tabs {
    background: rgba(var(--auth-primary-rgb), 0.08);
    border: 1px solid rgba(var(--auth-primary-rgb), 0.18);
    border-radius: 14px;
    display: grid;
    gap: 0.32rem;
    grid-template-columns: repeat(var(--auth-profile-tabs-count, 3), minmax(0, 1fr));
    padding: 0.32rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
    width: 100%;
}

.auth-login-register .auth-profile-switcher__tab {
    align-items: center;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--auth-text-secondary);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 44px;
    padding: 0.78rem 0.75rem;
    text-decoration: none;
    transition: background var(--auth-transition), color var(--auth-transition), box-shadow var(--auth-transition), border-color var(--auth-transition), transform var(--auth-transition);
}

.auth-login-register .auth-profile-switcher__tab:hover {
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(var(--auth-primary-rgb), 0.16);
    transform: translateY(-1px);
    text-decoration: none;
}

.auth-login-register .auth-profile-switcher__tab.is-active {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(var(--auth-primary-rgb), 0.22);
    box-shadow: 0 8px 20px rgba(44, 37, 24, 0.10), inset 0 2px 0 rgba(var(--auth-primary-rgb), 0.72);
    color: var(--auth-text);
}

/* ─────────────────────────────────────
   Typography
   ───────────────────────────────────── */
.auth-login-register h1,
.auth-login-register h2,
.auth-login-register h3,
.auth-login-register h4,
.auth-login-register h5 {
    color: var(--auth-text);
    font-weight: 700;
}

.auth-login-register .text-muted {
    color: var(--auth-muted) !important;
}

.auth-login-register p,
.auth-login-register li {
    color: var(--auth-text-secondary);
}

/* ─────────────────────────────────────
   Form Controls
   ───────────────────────────────────── */
.auth-login-register .form-control,
.auth-login-register .form-select,
.auth-login-register .select2-container--default .select2-selection--single,
.auth-login-register .input-group-text,
.auth-login-register .iti__selected-flag,
.auth-login-register .iti input {
    background-color: var(--auth-input-bg) !important;
    color: var(--auth-text) !important;
    border-color: var(--auth-input-border) !important;
    border-radius: var(--auth-radius-sm) !important;
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition);
}

.auth-login-register .form-control:focus,
.auth-login-register .form-select:focus,
.auth-login-register .select2-container--default .select2-selection--single:focus,
.auth-login-register .iti input:focus {
    border-color: var(--auth-input-focus-border) !important;
    box-shadow: var(--auth-shadow-input-focus) !important;
    outline: none;
}

.auth-login-register .form-control::placeholder {
    color: var(--auth-muted) !important;
    opacity: 0.7;
}

.auth-login-register .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--auth-text) !important;
}

.auth-login-register .select2-dropdown,
.auth-login-register .select2-results__option {
    color: var(--auth-text) !important;
    background-color: var(--auth-input-bg) !important;
}

.auth-login-register .select2-results__option--highlighted {
    background-color: rgba(var(--auth-primary-rgb), 0.12) !important;
    color: var(--auth-text) !important;
}

.auth-login-register .form-check-input {
    border-color: var(--auth-input-border) !important;
    background-color: var(--auth-input-bg) !important;
}

.auth-login-register .form-check-input:checked {
    background-color: var(--auth-primary) !important;
    border-color: var(--auth-primary) !important;
}

.auth-login-register .form-label {
    font-weight: 600;
    color: var(--auth-text);
    font-size: 0.92rem;
}

.auth-login-register .form-text,
.auth-login-register .form-hint {
    color: var(--auth-muted);
    font-size: 0.82rem;
}

/* ─────────────────────────────────────
   Buttons
   ───────────────────────────────────── */
.auth-login-register .btn-primary {
    background: linear-gradient(180deg, #c0aa6d 0%, #aa9052 100%) !important;
    border-color: #aa9052 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--auth-radius-sm);
    padding: 0.65rem 1.5rem;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 24px rgba(146, 118, 49, 0.18);
    transition: all var(--auth-transition);
}

.auth-login-register .btn-primary:hover,
.auth-login-register .btn-primary:focus {
    background: linear-gradient(180deg, #b49c60 0%, #957b43 100%) !important;
    border-color: #957b43 !important;
    box-shadow: 0 12px 28px rgba(146, 118, 49, 0.26);
    transform: translateY(-1px);
}

.auth-login-register .btn-primary:active {
    transform: translateY(0);
}

/* Social Login Buttons */
.auth-login-register .social-media .btn-google {
    background-color: var(--auth-primary) !important;
    border-color: var(--auth-primary) !important;
    color: #fff !important;
    border-radius: var(--auth-radius-sm);
    font-weight: 600;
    transition: all var(--auth-transition);
}

.auth-login-register .social-media .btn-google:hover {
    background-color: var(--auth-primary-dark) !important;
    border-color: var(--auth-primary-dark) !important;
}

/* ─────────────────────────────────────
   Links
   ───────────────────────────────────── */
.auth-login-register a {
    color: var(--auth-primary);
    text-decoration: none;
    transition: color var(--auth-transition);
}

.auth-login-register a:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

/* ─────────────────────────────────────
   Alerts
   ───────────────────────────────────── */
.auth-login-register .alert {
    border-radius: var(--auth-radius-sm);
    border: none;
    font-size: 0.92rem;
}

.auth-login-register .alert-danger {
    background-color: #fdf0ef;
    color: #a12a26;
    border-left: 4px solid #dc3545;
}

.auth-login-register .alert-success {
    background-color: #edf7ed;
    color: #1a6b1f;
    border-left: 4px solid #28a745;
}

.auth-login-register .alert-info {
    background-color: #eef6fc;
    color: #0c5fa5;
    border-left: 4px solid #0d6efd;
}

/* ─────────────────────────────────────
   Form Groups / Auth Field Items
   ───────────────────────────────────── */
.auth-login-register .auth-field-item,
.auth-login-register .form-group {
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────
   Card inside finished/verify pages
   ───────────────────────────────────── */
.auth-login-register .card {
    background: var(--auth-card);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius-sm);
}

/* ─────────────────────────────────────
   Separator Lines (social login)
   ───────────────────────────────────── */
.auth-login-register hr {
    border-color: var(--auth-card-border);
    opacity: 0.5;
}

/* ─────────────────────────────────────
   Language Selector
   ───────────────────────────────────── */
.auth-login-register .select-language-wrapper {
    margin-top: 1rem;
}

.auth-login-register .select-language-wrapper a {
    color: var(--auth-muted);
    font-size: 0.82rem;
}

.auth-login-register .select-language-wrapper a:hover {
    color: var(--auth-primary);
}

/* ─────────────────────────────────────
   Right Column Background
   ───────────────────────────────────── */
.auth-login-register .col-md-6.d-flex,
.auth-login-register .auth-panel-column {
    background-color: var(--auth-bg);
}

.auth-login-register .auth-panel-shell {
    align-items: center;
    display: flex;
    min-height: 100%;
    width: 100%;
    padding-bottom: 1rem;
    padding-top: 1rem;
    box-sizing: border-box;
}

.auth-login-register .auth-mobile-brand {
    display: none;
}

/* ─────────────────────────────────────
   Responsive
   ───────────────────────────────────── */
@media (max-width: 991.98px) {
    .auth-login-register .auth-content-card {
        padding: 24px 20px 18px;
    }
}

@media (max-width: 767.98px) {
    .auth-login-register .hero-wrap {
        min-height: 220px !important;
    }

    .auth-login-register .hero-content .my-auto {
        display: none !important;
    }

    .auth-login-register .auth-content-card {
        padding: 20px 16px 16px;
        border-radius: 12px;
    }
}

/* Mobile-first auth entry layout (login/register) */
@media (max-width: 1024px) {
    #main-wrapper.auth-page-entry {
        background:
            radial-gradient(circle at 14% 8%, rgba(var(--auth-primary-rgb), 0.22), transparent 42%),
            linear-gradient(180deg, #f9f4e9 0%, #f8f4eb 44%, #f3ecde 100%);
    }

    #main-wrapper.auth-page-entry .row.g-0.min-vh-100 > .col-md-6:first-child {
        display: none !important;
    }

    #main-wrapper.auth-page-entry .col-md-6.d-flex {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        background: transparent;
        align-items: flex-start;
    }

    #main-wrapper.auth-page-entry .col-md-6.d-flex > .container {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 1rem 1rem 2rem !important;
    }

    #main-wrapper.auth-page-entry .auth-mobile-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 0.95rem;
    }

    #main-wrapper.auth-page-entry .auth-mobile-brand > a {
        align-items: center;
        justify-content: center;
        padding: 0.48rem 0.72rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(var(--auth-primary-rgb), 0.28);
        box-shadow: 0 12px 24px rgba(44, 37, 24, 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    #main-wrapper.auth-page-entry .auth-mobile-brand img {
        width: auto !important;
        height: auto !important;
        max-width: min(74vw, 220px) !important;
        max-height: 56px !important;
        filter: none !important;
    }

    #main-wrapper.auth-page-entry .auth-content-card {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(var(--auth-primary-rgb), 0.24);
        border-radius: 18px;
        padding: 1.15rem 1rem 1rem;
        box-shadow: 0 20px 40px rgba(44, 37, 24, 0.12);
    }

    #main-wrapper.auth-page-login .auth-login-heading,
    #main-wrapper.auth-page-register .auth-register-heading {
        font-size: 1.34rem;
        line-height: 1.2;
        margin-bottom: 0.85rem !important;
        text-align: center;
    }

    #main-wrapper.auth-page-login .auth-login-intro,
    #main-wrapper.auth-page-register .auth-register-intro {
        margin-bottom: 0.85rem !important;
        font-size: 0.92rem;
        line-height: 1.55;
        text-align: center;
    }

    #main-wrapper.auth-page-login .auth-login-bullets,
    #main-wrapper.auth-page-register .auth-register-bullets {
        margin: 0 0 1rem 0 !important;
        padding-left: 1.1rem;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    #main-wrapper.auth-page-entry .auth-profile-switcher {
        margin-bottom: 1rem;
    }

    #main-wrapper.auth-page-entry .auth-profile-switcher__eyebrow {
        margin-bottom: 0.7rem;
        text-align: center;
    }

    #main-wrapper.auth-page-entry .auth-profile-switcher__tabs {
        width: 100%;
    }

    #main-wrapper.auth-page-entry .auth-profile-switcher__tab {
        align-items: center;
        font-size: 0.84rem;
        justify-content: center;
        min-height: 42px;
        padding: 0.7rem 0.5rem;
    }

    #main-wrapper.auth-page-entry #loginForm .form-control,
    #main-wrapper.auth-page-entry #loginForm .form-select,
    #main-wrapper.auth-page-entry #loginForm .select2-container--default .select2-selection--single,
    #main-wrapper.auth-page-entry #loginForm .iti input,
    #main-wrapper.auth-page-entry #signupForm .form-control,
    #main-wrapper.auth-page-entry #signupForm .form-select,
    #main-wrapper.auth-page-entry #signupForm .select2-container--default .select2-selection--single,
    #main-wrapper.auth-page-entry #signupForm .iti input {
        min-height: 50px;
    }

    #main-wrapper.auth-page-entry #loginForm .form-label,
    #main-wrapper.auth-page-entry #signupForm .form-label {
        font-size: 0.86rem;
    }

    #main-wrapper.auth-page-entry #loginForm .btn-primary,
    #main-wrapper.auth-page-entry #signupForm .btn-primary {
        min-height: 50px;
        border-radius: 12px;
        font-size: 0.96rem;
    }

    #main-wrapper.auth-page-entry .social-media .btn,
    #main-wrapper.auth-page-entry .social-media .btn a {
        min-height: 48px;
    }

    #main-wrapper.auth-page-entry .select-language-wrapper {
        margin-top: 1rem;
        text-align: center;
    }
}
