/* =============================================
   NuggetsAbode - Auth Pages
   ============================================= */

/* ---- Auth Base ---- */
.auth-body {
    background: var(--black);
    margin: 0;
    padding-top: 80px;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ---- Split Layout ---- */
.auth-split {
    display: flex;
    width: 100%;
    max-width: 840px;
    min-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    animation: authFadeIn 0.6s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Left Brand Panel ---- */
.auth-brand {
    flex: 0 0 40%;
    background: linear-gradient(160deg, var(--gold) 0%, var(--dark-gold) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.auth-brand-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(0,0,0,0.15) 0%, transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-brand::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    bottom: -100px;
    left: -100px;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    padding: 36px 32px;
    width: 100%;
}

.auth-logo {
    width: 52px;
    height: 52px;
    background: var(--black);
    color: var(--gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.auth-brand-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 4px;
    line-height: 1.2;
}

.auth-brand-title b { color: rgba(0,0,0,0.6); }

.auth-brand-tagline {
    color: rgba(0,0,0,0.6);
    font-size: 0.82rem;
    margin-bottom: 28px;
}

/* Features List */
.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.auth-feature-icon {
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.auth-features li strong {
    display: block;
    font-size: 0.82rem;
    color: var(--black);
    margin-bottom: 1px;
}

.auth-features li span {
    font-size: 0.74rem;
    color: rgba(0,0,0,0.55);
}

/* Brand Footer Quote */
.auth-brand-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.auth-brand-footer i {
    color: rgba(0,0,0,0.25);
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
}

.auth-brand-footer p {
    font-style: italic;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.5);
    line-height: 1.4;
}

/* ---- Right Form Panel ---- */
.auth-form-panel {
    flex: 1;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
    max-width: 380px;
    padding: 36px 32px;
}

/* Mobile Header */
.auth-mobile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-logo-sm {
    width: 42px;
    height: 42px;
    background: var(--black);
    color: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid var(--gold);
}

.auth-mobile-brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
}

.auth-mobile-brand-text b { color: var(--white); }

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

.auth-form-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 4px;
}

.auth-form-header p {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

/* ---- Form Fields ---- */
.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.auth-field-input i {
    position: absolute;
    left: 16px;
    color: rgba(255,255,255,0.25);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 1;
}

.auth-field-input input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: var(--white);
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    color: var(--black);
    font-size: 0.88rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    outline: none;
}

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

.auth-field-input input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}

.auth-field-input input:-webkit-autofill,
.auth-field-input input:-webkit-autofill:hover,
.auth-field-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--white) inset;
    -webkit-text-fill-color: var(--black);
}

.auth-field-input:focus-within > i {
    color: var(--gold);
}

/* Password Toggle */
.auth-eye {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: color 0.3s;
    z-index: 1;
}

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

/* Hint Text */
.auth-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* ---- Options Row ---- */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

/* Custom Checkbox */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    user-select: none;
}

.auth-checkbox input {
    display: none;
}

.auth-checkbox-mark {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.auth-checkbox-mark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: var(--black);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.auth-checkbox input:checked + .auth-checkbox-mark {
    background: var(--gold);
    border-color: var(--gold);
}

.auth-checkbox input:checked + .auth-checkbox-mark::after {
    opacity: 1;
    transform: scale(1);
}

.auth-forgot {
    font-size: 0.82rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.auth-forgot:hover {
    opacity: 0.7;
    color: var(--gold);
}

/* ---- Submit Button ---- */
.auth-submit {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212,175,55,0.3);
    position: relative;
    overflow: hidden;
}

.auth-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.45);
}

.auth-submit:hover::before {
    opacity: 1;
}

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

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-submit-arrow {
    font-size: 0.85rem;
    transition: transform 0.3s;
}

.auth-submit:hover .auth-submit-arrow {
    transform: translateX(4px);
}

/* ---- Switch Text ---- */
.auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.4);
}

.auth-switch a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.auth-switch a:hover {
    opacity: 0.7;
    color: var(--gold);
}

/* ---- Back to Home Button ---- */
.auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.auth-back-home:hover {
    color: var(--black);
    background: var(--gold);
    border-color: var(--gold);
}

.auth-back-home i {
    font-size: 0.75rem;
}

/* ---- Flash Messages ---- */
.auth-form-container .alert {
    border-radius: 8px;
    font-size: 0.82rem;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: none;
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
}

.auth-form-container .alert-success {
    background: rgba(16,185,129,0.15);
    color: #6ee7b7;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .auth-split {
        max-width: 420px;
        border-radius: 14px;
    }

    .auth-form-container {
        padding: 32px 28px;
    }
}

@media (max-width: 575.98px) {
    .auth-wrapper {
        padding: 0;
        align-items: flex-start;
    }

    .auth-split {
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
        border: none;
    }

    .auth-form-container {
        padding: 32px 24px;
    }

    .auth-form-header h2 {
        font-size: 1.4rem;
    }
}
