body{
    font-family: Arial;
    background: linear-gradient(135deg,#e0e7ff,#f8fafc);
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    margin:0;
    padding:15px;
}

/* CARD */
.card{
    background:#fff;
    width:100%;
    max-width:380px;
    padding:30px;
    border-radius:20px;
    box-shadow:0 20px 60px rgba(0,0,0,.15);
}

/* TITLE */
h2{
    text-align:center;
    margin-bottom:15px;
}

/* STEP CONTROL */
.step{
    display:none;
}

.active{
    display:block;
}

/* PROGRESS BAR */
.bar{
    height:6px;
    background:#e5e7eb;
    border-radius:10px;
    margin-bottom:15px;
    overflow:hidden;
}

.bar div{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,#6366f1,#22c55e);
    transition:0.4s;
}

/* INPUT + BUTTON (GLOBAL SAFE RULE) */
.card input:not(.otp-input),
.card button{
    width:100%;
    padding:12px;
    margin-top:12px;
    border-radius:10px;
    font-size:14px;
    box-sizing:border-box;
}

/* INPUT STYLE */
.card input{
    border:1px solid #e5e7eb;
    outline:none;
    transition:0.2s;
}

.card input:focus{
    border-color:#6366f1;
    box-shadow:0 0 0 3px rgba(99,102,241,.15);
}

/* BUTTON */
.card button{
    background:#4f46e5;
    color:#fff;
    border:none;
    font-weight:bold;
    cursor:pointer;
    transition:0.2s;
}

.card button:hover{
    background:#4338ca;
}

/* TOAST */
.toast{
    position:fixed;
    top:20px;
    right:20px;
    padding:14px 18px;
    border-radius:10px;
    color:#fff;
    opacity:0;
    transform:translateY(-10px);
    transition:0.3s;
    z-index:9999;
}

.toast.show{
    opacity:1;
    transform:translateY(0);
}

/* =========================
   OTP SECTION (FIXED ROW)
========================= */
.otp-boxes{
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 10px !important;
    width: 100%;
    max-width: 320px;
    margin: 15px auto;
}

/* OTP INPUT */
.otp-boxes input{
    width: 100% !important;
    height: 55px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
}

.otp-input:focus{
    border-color:#6c63ff;
    box-shadow:0 0 5px rgba(108,99,255,0.5);
}

/* RESEND BUTTON */
#resendBtn{
    margin-top:10px;
    background:#eee;
    color:#111;
}

/* PASSWORD STRENGTH */
.strength{
    width:100%;
    height:6px;
    background:#eee;
    margin:8px 0;
    border-radius:4px;
    overflow:hidden;
}

#strengthBar{
    height:100%;
    width:0%;
    background:red;
    border-radius:4px;
    transition:0.3s;
}

/* MOBILE RESPONSIVE */
@media (max-width:480px){
    .card{
        padding:20px;
    }

    .otp-input{
        width:40px !important;
        min-width:40px;
        flex:0 0 40px;
        font-size:18px;
        height:50px;
    }
}

.otp-boxes{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    overflow: visible !important;
}