/* ==========================================================================
   Spice Junction — Auth Modals (Login / Register / Forgot Password)
   Built to extend Falcon theme tokens — does not override Bootstrap defaults
   ========================================================================== */

/* Submit buttons — replicates .btn-primary (Falcon gold) since
   the modals use .btn without .btn-primary */
.auth-btn-primary {
    color: #4d5969;
    background-color: #ffc554;
    border-color: #ffc554;
    font-weight: 600;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.auth-btn-primary:hover {
    color: #4d5969;
    background-color: rgb(255, 184, 46);
    border-color: rgb(255, 180, 33);
}

.auth-btn-primary:focus,
.auth-btn-primary.focus {
    box-shadow: 0 0 0 .2rem rgba(255, 197, 84, .35);
}

/* Modal title */
.auth-modal-title {
    font-family: "Merriweather", serif;
    font-weight: 700;
    color: #344050;
}

/* Field labels */
.auth-label {
    font-size: .85rem;
    font-weight: 600;
    color: #344050;
    margin-bottom: .35rem;
}

/* Inline links (forgot password, switch modal) */
.auth-link {
    color: #ffc554;
    font-weight: 600;
    cursor: pointer;
}

.auth-link:hover {
    color: rgb(255, 171, 8);
    text-decoration: underline;
}

/* Helper / muted text */
.auth-helper-text,
.auth-switch-text {
    font-size: .875rem;
    color: #748194;
}

.auth-optional {
    font-size: .8rem;
    color: #9da9bb;
    font-weight: 400;
}

/* ==========================================================================
   Email verification banner — resend button
   ========================================================================== */
.auth-btn-resend {
    background-color: transparent;
    border: 1px solid rgb(132.6, 106.08, 0);
    color: rgb(132.6, 106.08, 0);
    font-weight: 600;
    border-radius: .25rem;
    padding: .25rem .75rem;
}

.auth-btn-resend:hover {
    background-color: rgb(132.6, 106.08, 0);
    color: #fff;
}

/* ==========================================================================
   Reset Password — standalone page
   ========================================================================== */
.auth-reset-page {
    min-height: 70vh;
    padding: 6rem 1rem;
}

.auth-reset-card {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    border: 1px solid #d8e2ef;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1.5rem rgba(11, 23, 39, .08);
    padding: 2.5rem 2rem;
}

/* ==========================================================================
   Z-index safety — ensures modals sit above the glassmorphism navbar
   ========================================================================== */
#loginModal,
#registerModal,
#forgotModal {
    z-index: 10500;
}

#loginModal + .modal-backdrop,
#registerModal + .modal-backdrop,
#forgotModal + .modal-backdrop,
.modal-backdrop {
    z-index: 10400;
}

/* ==========================================================================
   Z-index fix — keeps modal-body content (incl. close button) above .bg-holder
   ========================================================================== */
#loginModal .modal-body,
#registerModal .modal-body,
#forgotModal .modal-body {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Validation / status messages — themed alerts
   ========================================================================== */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    border-radius: .375rem;
    border: none;
    border-left: 4px solid;
    padding: .75rem 1rem;
    font-size: .9rem;
    animation: authAlertIn .25s ease-out;
}

.auth-alert i {
    margin-top: .15rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-alert ul {
    margin: 0;
    padding-left: 1rem;
}

.auth-alert-success {
    background-color: rgba(76, 217, 100, .12);
    border-left-color: #4cd964;
    color: rgb(36, 119, 56);
}

.auth-alert-danger {
    background-color: rgba(255, 128, 110, .12);
    border-left-color: #FF806E;
    color: rgb(176, 50, 32);
}

@keyframes authAlertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
