body.at-password-page{
    margin:0;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    background:#eef3f9;
    color:#071f43;
    font-family:"Inter","Segoe UI",Arial,sans-serif;
}

.at-password-main,
.at-password-main *{
    box-sizing:border-box;
}

.at-password-main{
    position:relative;
    isolation:isolate;
    width:100%;
    min-height:620px;
    flex:1 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding:72px 20px;
    background:
        linear-gradient(135deg,rgba(7,31,67,.94),rgba(12,99,216,.76)),
        url('../images/bg-auth.jpg') center/cover no-repeat;
}

.at-password-main::before,
.at-password-main::after{
    content:"";
    position:absolute;
    z-index:-1;
    border-radius:50%;
    filter:blur(2px);
    pointer-events:none;
}

.at-password-main::before{
    width:360px;
    height:360px;
    top:-180px;
    right:7%;
    background:rgba(255,184,23,.18);
}

.at-password-main::after{
    width:420px;
    height:420px;
    bottom:-260px;
    left:4%;
    background:rgba(40,169,232,.22);
}

.reset-card{
    position:relative;
    width:min(520px,100%);
    padding:clamp(28px,4vw,46px);
    border:1px solid rgba(255,255,255,.78);
    border-radius:28px;
    background:rgba(255,255,255,.98);
    box-shadow:0 30px 80px rgba(3,18,42,.32);
}

.at-password-main--new .reset-card{
    width:min(560px,100%);
}

.reset-card-icon{
    width:62px;
    height:62px;
    margin-bottom:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    background:linear-gradient(135deg,#eaf5ff,#f3f8ff);
    color:#0c63d8;
    font-size:25px;
    box-shadow:inset 0 0 0 1px #d6e9ff;
}

.reset-card h1{
    margin:0 0 12px;
    color:#071f43;
    font-size:clamp(28px,4vw,38px);
    line-height:1.12;
    letter-spacing:-.8px;
}

.reset-card-intro{
    margin:0 0 26px;
    color:#61738b;
    font-size:15px;
    font-weight:600;
    line-height:1.65;
}

.success-box,
.reset-error{
    margin:0 0 20px;
    padding:14px 16px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    border-radius:14px;
    font-size:13px;
    font-weight:800;
    line-height:1.45;
}

.success-box{
    border:1px solid #b8ebcf;
    background:#ecfdf3;
    color:#12653a;
}

.reset-error{
    border:1px solid #fecaca;
    background:#fef2f2;
    color:#991b1b;
}

.success-box i,
.reset-error i{
    margin-top:2px;
}

.reset-form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.reset-form label{
    color:#1a3152;
    font-size:13px;
    font-weight:800;
}

.reset-input,
.password-control{
    position:relative;
}

.reset-input > i{
    position:absolute;
    top:50%;
    left:17px;
    transform:translateY(-50%);
    color:#64748b;
    pointer-events:none;
}

html[dir="rtl"] .reset-input > i{
    left:auto;
    right:17px;
}

.reset-form input{
    width:100%;
    height:58px;
    border:1px solid #cbd8e7;
    border-radius:15px;
    padding:0 18px 0 48px;
    background:#fff;
    color:#071f43;
    font:inherit;
    font-size:15px;
    font-weight:700;
    outline:none;
    transition:border-color .2s ease,box-shadow .2s ease;
}

html[dir="rtl"] .reset-form input{
    padding:0 48px 0 18px;
}

.reset-form .password-control input,
html[dir="rtl"] .reset-form .password-control input{
    padding:0 18px;
}

.reset-form input:focus{
    border-color:#0c63d8;
    box-shadow:0 0 0 4px rgba(12,99,216,.13);
}

.reset-form button{
    width:100%;
    min-height:58px;
    margin-top:3px;
    border:0;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:linear-gradient(135deg,#28a9e8,#3468f6);
    color:#fff;
    font:inherit;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 14px 28px rgba(37,99,235,.22);
    transition:transform .2s ease,box-shadow .2s ease;
}

.reset-form button:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 34px rgba(37,99,235,.28);
}

.reset-form button:focus-visible,
.back-login:focus-visible{
    outline:3px solid rgba(255,184,23,.75);
    outline-offset:3px;
}

.password-rules{
    margin:-2px 0 2px;
    padding:12px 14px;
    display:flex;
    align-items:flex-start;
    gap:9px;
    border:1px solid #dce9f7;
    border-radius:13px;
    background:#f6faff;
    color:#526982;
    font-size:12px;
    font-weight:700;
    line-height:1.45;
}

.password-rules i{
    margin-top:2px;
    color:#0c63d8;
}

.back-login{
    min-height:44px;
    margin-top:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border-radius:12px;
    color:#0c63d8;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
}

.back-login:hover{
    background:#f1f6fd;
}

@media (max-width:640px){
    .at-password-main{
        min-height:540px;
        padding:38px 14px;
    }

    .reset-card{
        border-radius:22px;
    }

    .reset-card-icon{
        width:54px;
        height:54px;
        margin-bottom:18px;
        border-radius:16px;
        font-size:22px;
    }
}
