/* =============================================
   PREMIUM MINIMAL AUTH PAGES
   Lativio — Gold & Dark Blue Brand
   ============================================= */

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

:root {
    --auth-gold: #d4af37;
    --auth-gold-hover: #c5a028;
    --auth-gold-glow: rgba(212, 175, 55, 0.25);
    --auth-dark: #0b1524;
    --auth-dark-mid: #12203a;
    --auth-dark-light: #1a2c4a;
    --auth-white: #ffffff;
    --auth-off-white: #f8f8f8;
    --auth-text: #2c2c2c;
    --auth-text-muted: #8a8a8a;
    --auth-border: #e2e2e2;
    --auth-radius: 16px;
}

/* ---- Reset for Auth Pages ---- */
.auth-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: var(--auth-dark);
    overflow-x: hidden;
}

/* ---- Main Container ---- */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ---- Left Brand Panel ---- */
.auth-brand-panel {
    flex: 0 0 45%;
    max-width: 45%;
    background: linear-gradient(160deg, var(--auth-dark) 0%, var(--auth-dark-mid) 50%, var(--auth-dark-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 40px;
}

/* Decorative gold accent line */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 10%, var(--auth-gold) 50%, transparent 90%);
}

/* Subtle animated glow orb */
.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-brand-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 32px;
    opacity: 0.95;
}

.auth-brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--auth-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.auth-brand-tagline {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Gold decorative divider */
.auth-brand-divider {
    width: 60px;
    height: 2px;
    background: var(--auth-gold);
    margin: 28px auto;
    border-radius: 2px;
}

.auth-brand-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* ---- Right Form Panel ---- */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-white);
    padding: 60px 40px;
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Form Header ---- */
.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.auth-form-subtitle {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---- Form Fields ---- */
.auth-field {
    margin-bottom: 24px;
    position: relative;
}

.auth-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.auth-field-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--auth-text);
    background: var(--auth-off-white);
    border: 1.5px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-field-input:focus {
    background: var(--auth-white);
    border-color: var(--auth-gold);
    box-shadow: 0 0 0 4px var(--auth-gold-glow);
}

.auth-field-input::placeholder {
    color: #c0c0c0;
}

/* Password field with toggle */
.auth-password-wrapper {
    position: relative;
}

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

.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-gold);
}

/* ---- Extras Row (Remember / Forgot) ---- */
.auth-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-gold);
    cursor: pointer;
    border-radius: 4px;
}

.auth-checkbox-label {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    user-select: none;
}

.auth-forgot-link {
    font-size: 0.85rem;
    color: var(--auth-gold-hover);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--auth-gold);
    text-decoration: underline;
}

/* ---- Submit Button ---- */
.auth-submit-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--auth-dark);
    background: var(--auth-gold);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover {
    background: var(--auth-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* ---- Footer Link ---- */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.88rem;
    color: var(--auth-text-muted);
}

.auth-footer a {
    color: var(--auth-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--auth-gold);
}

/* ---- Validation Errors ---- */
.auth-field .invalid-feedback {
    display: block;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 6px;
    padding-left: 2px;
}

.auth-field-input.is-invalid {
    border-color: #e74c3c;
    background: #fef7f7;
}

.auth-field-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

/* ---- Terms Checkbox ---- */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-gold);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-terms label {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    line-height: 1.5;
}

.auth-terms a {
    color: var(--auth-gold-hover);
    text-decoration: none;
    font-weight: 500;
}

.auth-terms a:hover {
    color: var(--auth-gold);
    text-decoration: underline;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet and below — hide brand panel */
@media (max-width: 991.98px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        background: linear-gradient(160deg, var(--auth-dark) 0%, var(--auth-dark-mid) 50%, var(--auth-dark-light) 100%);
        min-height: 100vh;
    }

    .auth-form-wrapper {
        background: var(--auth-white);
        padding: 40px 32px;
        border-radius: var(--auth-radius);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        max-width: 420px;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel {
        padding: 24px 16px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .auth-form-wrapper {
        padding: 32px 24px;
        border-radius: 14px;
    }

    .auth-form-title {
        font-size: 1.5rem;
    }

    .auth-brand-name-mobile {
        display: block;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--auth-gold);
        letter-spacing: 3px;
        text-transform: uppercase;
        margin-bottom: 24px;
    }
}

/* Desktop — hide mobile brand name */
@media (min-width: 576px) {
    .auth-brand-name-mobile {
        display: none;
    }
}