/* ── AUTH CARD BASE ── */
.login-card,
.signup-card,
.fp-card,
.otp-card {
    position: relative;
    z-index: 2;
    width: 448px;
    max-width: 448px;
    padding: 48px;
    background: rgba(32, 31, 31, .6);
    border: 1px solid rgba(80, 69, 59, .1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .8);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 39px;
    margin-top: 60px;
}

/* ── CARD HEADER ── */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.card-logo {
    width: 96px;
    height: 96px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(165, 59, 45, .3);
    overflow: hidden;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    text-align: center;
    margin-top: 8px;
}

.card-subtitle {
    font-size: 10px;
    letter-spacing: 1.6px;
    color: rgba(212, 196, 183, .6);
    text-align: center;
}

.card-copyright {
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(212, 196, 183, .25);
    text-align: center;
    padding-top: 8px;
}

/* ── FORM ELEMENTS ── */
.form-section,
.form-body {
    display: flex;
    flex-direction: column;
    gap: 31px;
}

.field-group {
    position: relative;
    padding-top: 22px;
}

.field-group.has-error .f-input,
.field-group.has-error .phone-num {
    border-color: #e74c3c !important;
}

.field-lbl {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: capitalize;
    color: #fff;
}

.field-lbl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #fff;
}

.forgot-link {
    font-size: 16px;
    color: rgba(212, 163, 115, .4);
    text-decoration: none;
    transition: color .2s;
}

.forgot-link:hover {
    color: var(--gold);
}

.field-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .4;
    pointer-events: none;
    color: var(--cream);
}

.password-field,
.pw-wrap {
    position: relative;
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.f-error {
    font-size: 10px;
    letter-spacing: 1px;
    color: #e74c3c;
    margin-top: 6px;
    display: none;
}

.f-error.show {
    display: block;
}

/* ── PASSWORD STRENGTH ── */
.pw-strength {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.pw-bar {
    flex: 1;
    height: 3px;
    background: rgba(80, 69, 59, .3);
    border-radius: 2px;
    transition: background .3s;
}

.pw-bar.weak {
    background: #e74c3c;
}

.pw-bar.medium {
    background: var(--gold);
}

.pw-bar.strong {
    background: #2ecc71;
}

/* ── TERMS ROW ── */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-cb {
    width: 16px;
    height: 16px;
    accent-color: var(--red);
    flex-shrink: 0;
    cursor: pointer;
}

.terms-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(212, 196, 183, .5);
    line-height: 18px;
}

.terms-label a {
    color: var(--gold);
    text-decoration: none;
}

/* ── ACTIONS ── */
.actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 17px;
}

.btn-signin,
.btn-create,
.btn-send,
.btn-verify {
    width: 100%;
    padding: 14px 40px;
    background: var(--red);
    border-radius: 4px;
    font-size: 16px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-signin:hover,
.btn-create:hover,
.btn-send:hover,
.btn-verify:hover {
    opacity: .88;
}

.btn-signin:disabled,
.btn-create:disabled,
.btn-send:disabled,
.btn-verify:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-back {
    width: 100%;
    padding: 14px 40px;
    border: 1px solid rgba(80, 69, 59, .2);
    background: transparent;
    font-size: 16px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #E5E2E1;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn-back:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── OR DIVIDER ── */
.or-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.or-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(80, 69, 59, .1);
}

.or-divider span {
    position: relative;
    z-index: 1;
    padding: 0 16px;
    background: rgba(32, 31, 31, .6);
    font-size: 16px;
    color: rgba(212, 196, 183, .4);
}

/* ── CARD FOOTER ── */
.card-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.card-footer-link {
    padding: 9px 0;
    font-size: 14px;
    text-align: center;
    color: rgba(212, 196, 183, .3);
    text-decoration: none;
    transition: color .2s;
    display: block;
}

.card-footer-link span {
    color: rgba(212, 196, 183, .6);
}

.card-footer-link:hover,
.card-footer-link:hover span {
    color: var(--cream);
}

.card-footer-support {
    padding: 9px 0;
    font-size: 14px;
    text-align: center;
    color: rgba(212, 196, 183, .3);
    cursor: default;
}

.card-footer-support span {
    color: rgba(212, 196, 183, .6);
    cursor: pointer;
    transition: color .2s;
}

.card-footer-support span:hover {
    color: var(--cream);
}

.cancel-link {
    padding: 9px 0;
    font-size: 14px;
    text-align: center;
    color: rgba(212, 196, 183, .4);
    text-decoration: none;
    display: block;
    transition: color .2s;
}

.cancel-link:hover {
    color: var(--cream);
}

/* ── BULL DIVIDER (fp page) ── */
.bull-divider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bull-line {
    flex: 1;
    height: 1px;
    background: rgba(80, 69, 59, .2);
}

.bull-icon {
    opacity: .4;
}

/* ── SUCCESS STATE (fp page) ── */
.success-msg {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.success-msg.show {
    display: flex;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(46, 204, 113, .15);
    border: 1px solid rgba(46, 204, 113, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2ecc71;
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--gold);
}

.success-body {
    font-size: 14px;
    color: var(--cream);
    line-height: 22px;
}

/* ── OTP BOXES ── */
.otp-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.otp-boxes {
    display: flex;
    gap: 16px;
}

.otp-input {
    width: 64px;
    height: 72px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: rgba(53, 53, 52, .4);
    border: 1px solid rgba(80, 69, 59, .3);
    color: #E5E2E1;
    outline: none;
    caret-color: var(--gold);
    -moz-appearance: textfield;
    transition: border-color .2s;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.otp-input:focus {
    border-color: var(--gold);
}

.otp-input.filled {
    border-color: var(--red);
    color: var(--gold);
}

.resend-row {
    font-size: 14px;
    text-align: center;
}

.resend-muted {
    color: rgba(212, 196, 183, .4);
}

.resend-link {
    color: var(--gold);
    cursor: pointer;
    transition: opacity .2s;
}

.resend-link.disabled {
    opacity: .35;
    cursor: default;
}

/* ── SUCCESS OVERLAY (otp) ── */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 11, .95);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.success-overlay.show {
    display: flex;
}

.success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(46, 204, 113, .2);
    border: 2px solid #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #2ecc71;
    animation: pop .4s ease;
}

.success-text {
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--cream);
}

@keyframes pop {
    from {
        transform: scale(.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── PHONE ROW ── */
.phone-row.error .phone-num {
    border-color: #e74c3c;
}

/* ── RESPONSIVE ── */
@media (max-width: 500px) {

    .login-card,
    .signup-card,
    .fp-card,
    .otp-card {
        width: calc(100vw - 32px);
        padding: 32px 24px;
    }

    .otp-input {
        width: 56px;
        height: 64px;
        font-size: 24px;
    }
}