/* ─── Wrapper ─────────────────────────────── */
.auth-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    background: url("../img/bg-login.png");
    background-size: cover;
    background-repeat: no-repeat;
}

/* subtle motion-blur vignette overlay */
.bg-left::after,
.bg-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.18) 0%,
        transparent 60%
    );
}
.bg-right::after {
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.18) 0%,
        transparent 60%
    );
}

/* ─── JTI Badge ───────────────────────────── */
.jti-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 20;
    font-family: "Seitu", sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    color: #00dd55;
    line-height: 1;
}

.jti-badge .img {
    width: 80px;
}

.jti-badge .jti-logo {
    width: 80px;
}

/* ─── Center Panel ────────────────────────── */
.auth-panel {
    position: relative;
    z-index: 5;
    width: 400px;
    min-height: 100vh;
    flex-shrink: 0;
    background-color: rgba(245, 245, 248, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.auth-panel form {
    width: 100%;
    margin-top: 2rem;
}

/* ─── Brand ───────────────────────────────── */
.brand .login-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ─── Step Title ──────────────────────────── */
.step-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Seitu", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2.5px;
    color: #3d3d3d;
    margin-top: 5rem;
    width: 100%;
    text-align: center;
}

.step-icon {
    width: 30px;
    height: auto;
    flex-shrink: 0;
}

/* ─── Alerts ──────────────────────────────── */
.alert {
    width: 100%;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    display: block;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.alert-error {
    color: #b0002e;
}

.alert-success {
    background: #f0fef4;
    color: #0a6a2e;
    border: 1px solid #aaeec4;
    text-align: center;
}

/* ─── Form ────────────────────────────────── */
.form-group {
    width: 100%;
    margin-bottom: 1rem;
}

.form-group label,
label {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.2px;
    margin-bottom: 5px;
}

.form-input {
    display: block;
    width: 100%;
    border: 1px solid #a2acad;
    border-radius: 5px;
    padding: 9px 11px;
    font-size: 1rem;
    font-family: "Seitu", sans-serif;
    background: transparent;
    color: #000;
    outline: none;
    transition:
        border-color 0.18s,
        background 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: #6622bb;
    background: transparent;
}

.form-input.is-invalid {
    border-color: #d4307a;
}

/* ─── Name row ────────────────────────────── */
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ─── Select ──────────────────────────────── */
.select-wrap {
    position: relative;
}

.form-select {
    padding-right: 30px;
    cursor: pointer;
}

.select-caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 7px;
    pointer-events: none;
}

/* ─── Submit Button ───────────────────────── */
.btn-primary {
    display: block;
    width: 100%;
    background: #430672;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 11px;
    font-size: 14px;
    font-family: "Seitu", sans-serif;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition:
        background 0.18s,
        transform 0.1s;
    margin-top: 4px;
}

.btn-primary:hover {
    background: #430672;
}
.btn-primary:active {
    transform: scale(0.98);
}
.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ─── OTP timer & subtitle ────────────────── */
.otp-timer {
    font-size: 1.2rem;
    color: #666666;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 5px;
    width: 100%;
    font-weight: 400;
}

.otp-subtitle {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    text-align: center;
    line-height: 1.55;
    margin-bottom: 0;
    width: 100%;
}

/* ─── OTP Boxes ───────────────────────────── */
.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
}

.otp-box {
    width: 52px;
    height: 58px;
    border: 1px solid #a2acad;
    border-radius: 7px;
    text-align: center;
    font-family: "Seitu", sans-serif;
    font-size: 2rem;
    color: #000;
    background: transparent;
    outline: none;
    transition:
        border-color 0.18s,
        background 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.resend-btn {
    background: none;
    border: none;
    font-family: "Seitu", sans-serif;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
    margin-top: 1rem;
}
.resend-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── Profile note ────────────────────────── */
.profile-note {
    font-size: 0.6rem;
    color: #888;
    text-align: center;
    line-height: 1.55;
    margin: 2px 0 16px;
    width: 100%;
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 480px) {
    .auth-panel {
        width: 100%;
        min-height: 100vh;
        padding: 2rem;
        backdrop-filter: none;
        background: rgba(245, 245, 248, 0.8);
    }
    .auth-panel .brand {
        margin-top: 5rem;
    }
    .jti-badge img {
        width: 60px;
    }
    .otp-box {
        width: 44px;
        height: 50px;
        font-size: 24px;
    }
}
