/* Shared styles for the anonymous auth pages (Login / Forgot / OTP / Reset). */

/* ---- field validation (red state) ---- */
input.input-validation-error,
input.field-error {
    border-color: #DC2626 !important;
    background: #FEF2F2 !important;
}

input.input-validation-error:focus,
input.field-error:focus {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}

.field-validation-error {
    color: #DC2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ---- alert popup (success / failure) ---- */
.login-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.login-alert-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    max-width: 340px;
    width: 100%;
    padding: 40px 24px 20px;
    text-align: center;
}

.login-alert-badge {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.login-alert-badge.ok { background: #22C55E; }
.login-alert-badge.fail { background: #EF4444; }
.login-alert-badge svg { width: 24px; height: 24px; color: #fff; }

.login-alert-title {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    margin-bottom: 6px;
}

.login-alert-msg {
    font-size: 12.5px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 16px;
}

.login-alert-btn {
    width: 100%;
    background: #EFD900;
    color: #040404;
    font-weight: 600;
    font-size: 13.5px;
    border: none;
    border-radius: 8px;
    padding: 9px 0;
    cursor: pointer;
    transition: background .15s ease;
}

.login-alert-btn:hover { background: #D9C400; }

/* ---- right-hand brand carousel (yellow panel) ---- */
/* Flat, one shade lighter than brand #EFD900 (which glared) and warmer than the pale tint. */
.auth-carousel-panel { background: #F5E45A; }

.carousel-item {
    display: none;
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

.carousel-item.active {
    display: flex;
    opacity: 1;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(4, 4, 4, .25);
    cursor: pointer;
}

.carousel-dot.active { background: #040404; }

/* ---- "Powered by" footer under the primary button ---- */
.powered-by {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #6B7280;
}

.powered-by img { height: 14px; width: auto; }
