/* ==========================================================================
   SWAM AUTHENTICATION SHARED STYLES
   Unified stylesheet for Login, Forget Password, Resend Verification & Reset Password
   ========================================================================== */

/* 1. Page Shell & Layout Wrapper */
.auth-page-shell {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    background-color: var(--swam-navy-dark-bg, #050608);
    background-image: url('/assets/images/login/background.webp');
    background-size: cover;
    background-position: 40% center;
    background-repeat: no-repeat;
    padding: 60px 0;
}

.auth-card-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 5;
}

/* 2. Glassmorphism Card Container */
.auth-glass-card {
    width: 100%;
    max-width: 460px;
    background: var(--swam-glass-auth-bg, rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: var(--swam-glass-auth-blur, blur(25px) saturate(160%));
    backdrop-filter: var(--swam-glass-auth-blur, blur(25px) saturate(160%));
    border: var(--swam-glass-auth-border, 1px solid rgba(255, 255, 255, 0.18));
    border-radius: 26px;
    padding: 42px 38px 38px;
    box-shadow: var(--swam-glass-auth-shadow, 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25));
    color: #ffffff;
    font-family: var(--font-plus-jakarta-sans, system-ui, -apple-system, sans-serif);
    position: relative;
    z-index: 5;
}

/* 3. Card Headers & Titles */
.auth-glass-card__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.auth-back-btn:hover {
    color: var(--swam-gold-400, #f7d67f);
    transform: translateX(-3px);
}

.auth-card-title {
    font-size: 20px;
    font-weight: normal;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.auth-instruction {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.4;
}

/* 4. Form Controls & Inputs */
.auth-form-group {
    margin-bottom: 22px;
}

.auth-form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 8px;
}

.auth-form-control {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 14.5px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.auth-form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 212, 122, 0.65);
    box-shadow: 0 0 0 3px rgba(245, 212, 122, 0.16);
    color: #ffffff;
    outline: none;
}

.auth-form-control.is-invalid {
    border-color: var(--swam-color-error, #ff6b6b) !important;
    background: rgba(255, 107, 107, 0.08);
}

/* Password Toggle Wrapper */
.auth-password-wrapper {
    position: relative;
    width: 100%;
}

.auth-password-wrapper .auth-form-control {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: #ffffff;
}

/* 5. Buttons & Actions */
.auth-submit-btn {
    background: var(--swam-gold-gradient, linear-gradient(180deg, #f7d67f 0%, #ddaf4f 100%));
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14.5px;
    padding: 11px 32px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(221, 175, 79, 0.28);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-submit-btn:hover {
    background: var(--swam-gold-btn-hover, linear-gradient(180deg, #ffe094 0%, #e8be62 100%));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(221, 175, 79, 0.38);
    color: #000000;
}

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

.auth-feedback-invalid {
    color: var(--swam-color-error-text, #ff8585);
    font-size: 12.5px;
    margin-top: 6px;
    display: block;
}

/* 6. Footer Navigation & Links */
.auth-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 36px;
    gap: 16px;
}

.auth-new-user {
    display: flex;
    flex-direction: column;
}

.auth-new-user__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2px;
}

.auth-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--swam-gold-400, #f7d67f);
}

.auth-link--underline {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-link--underline:hover {
    color: var(--swam-gold-400, #f7d67f);
}

.auth-page-shell a:hover {
    color: #ffffff;
}

/* 7. Responsive Breakpoints */
@media (max-width: 991px) {
    .auth-card-wrapper {
        justify-content: center;
    }

    .auth-page-shell {
        background-position: center;
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .auth-glass-card {
        padding: 32px 22px 28px;
        border-radius: 20px;
    }

    .auth-glass-card__title {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .auth-card-title {
        font-size: 18px;
    }

    .auth-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .auth-error-number {
        font-size: 56px;
    }
}

/* 8. Error Pages Specific Styles */
.auth-error-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(247, 214, 127, 0.12);
    border: 1px solid rgba(247, 214, 127, 0.28);
    color: var(--swam-gold-400, #f7d67f);
}

.auth-error-badge--danger {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--swam-color-error-text, #ff8585);
}

.auth-error-number {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    font-family: var(--font-plus-jakarta-sans, system-ui, sans-serif);
}

.auth-error-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 26px;
}

.auth-error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}