/* ===========================================================
   RESUVIX AI
   AUTH CSS
   Part 1
   Foundation • Background • Layout
=========================================================== */

/* ===========================
   RESET
=========================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Plus Jakarta Sans",sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

    min-height:100vh;

    position:relative;

}


@keyframes floatShape{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-18px);

    }

}

/* ===========================
   MAIN WRAPPER
=========================== */

.auth-wrapper{
    width:min(1280px,92%);
    min-height:100vh;
    margin:0 auto;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    align-items:flex-start;
    gap:40px;
    padding:16px 0 40px;
}

/* ===========================
   LEFT SIDE
=========================== */

.auth-left{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

}

/* ===========================
   LOGO
=========================== */

.auth-logo{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:24px;
}

.auth-logo img{
    width:180px;
    height:auto;
}

.auth-logo h2{
    font-size:2rem;
    font-weight:800;
    color:var(--text);
}

/* ===========================
   HERO CONTENT
=========================== */

.hero-content{
    margin-bottom:24px;
}

.hero-content .badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:12px 20px;

    border-radius:999px;

    background:#fff;

    border:1px solid rgba(108,99,255,.15);

    color:var(--primary);

    font-weight:700;

    box-shadow:var(--shadow-sm);

    margin-bottom:30px;

}

.hero-content h1{

    font-size:clamp(3rem,6vw,4.8rem);

    line-height:1.05;

    font-weight:800;

    letter-spacing:-2px;

    margin-bottom:24px;

    color:var(--text);

}

.hero-content h1 span{

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--accent)
    );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

    background-clip:text;

}

.hero-content p{

    max-width:620px;

    color:var(--text-light);

    font-size:1.08rem;

    line-height:1.9;

}

/* ===========================
   FEATURE LIST
=========================== */

.feature-list{

    display:flex;

    flex-direction:column;

    gap:26px;

}

.feature{

    display:flex;

    align-items:flex-start;

    gap:18px;

    transition:.35s ease;

}

.feature-icon{

    width:60px;

    height:60px;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(
        135deg,
        rgba(108,99,255,.10),
        rgba(6,182,212,.10)
    );

    color:var(--primary);

    font-size:26px;

    transition:.35s;

}

.feature h4{

    font-size:1.1rem;

    color:var(--text);

    margin-bottom:6px;

}

.feature p{

    color:var(--text-light);

    line-height:1.7;

}

/* ===========================
   RIGHT PANEL
=========================== */

.auth-right{

    display:flex;

    justify-content:center;

    align-items:center;

    width:100%;

}

/* ===========================================================
   AUTH CSS
   Part 2
   Login Card • Form • Buttons
=========================================================== */

/* ===========================
   AUTH CARD
=========================== */

.auth-card{

    width:100%;

    max-width:460px;

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.7);

    border-radius:30px;

    padding:28px 32px;

    box-shadow:
        0 25px 70px rgba(15,23,42,.12);

    position:relative;

    overflow:hidden;

    transition:.35s ease;

}

.auth-card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:inherit;

    padding:1px;

    background:linear-gradient(
        135deg,
        rgba(108,99,255,.28),
        rgba(6,182,212,.15)
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;

    mask-composite:exclude;

    pointer-events:none;

}

.auth-card:hover{

    transform:translateY(-6px);

    box-shadow:
        0 35px 80px rgba(15,23,42,.15);

}


/* ===========================
   HEADER
=========================== */

.auth-header{

    text-align:center;

    margin-bottom:34px;

}

.auth-header h2{

    font-size:2rem;

    font-weight:800;

    color:var(--text);

    margin-bottom:10px;

}

.auth-header p{

    color:var(--text-light);

    line-height:1.7;

}

/* ===========================
   FORM
=========================== */

.auth-form{

    display:flex;

    flex-direction:column;

    gap:22px;

}

/* ===========================
   LABELS
=========================== */

.input-group{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.input-group label{

    font-size:.95rem;

    font-weight:700;

    color:var(--text);

}

/* ===========================
   INPUT BOX
=========================== */

.input-box{

    position:relative;

}

.input-box i{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    font-size:20px;

    color:var(--text-muted);

    transition:.3s;

}

.input-box input{

    width:100%;

    height:58px;

    padding:0 55px;

    border-radius:16px;

    border:1px solid var(--border);

    background:#fff;

    color:var(--text);

    font-size:15px;

    transition:.35s ease;

    outline:none;

}

.input-box input::placeholder{

    color:var(--text-muted);

}

.input-box input:hover{

    border-color:rgba(108,99,255,.25);

}

.input-box input:focus{

    border-color:var(--primary);

    box-shadow:
        0 0 0 4px rgba(108,99,255,.12);

}

.input-box input:focus+i{

    color:var(--primary);

}

/* ===========================
   TOGGLE PASSWORD
=========================== */

.toggle-password{

    position:absolute;

    right:18px;

    top:50%;

    transform:translateY(-50%);

    cursor:pointer;

    border:none;

    background:none;

    color:var(--text-muted);

    font-size:20px;

    transition:.3s;

}

.toggle-password:hover{

    color:var(--primary);

}

/* ===========================
   OPTIONS
=========================== */

.auth-options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:-6px;

}

.remember-me{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:14px;

    color:var(--text-light);

    cursor:pointer;

}

.remember-me input{

    width:16px;

    height:16px;

    accent-color:var(--primary);

}

.auth-options a{

    color:var(--primary);

    font-weight:700;

    transition:.3s;

}

.auth-options a:hover{

    color:var(--accent);

}

/* ===========================
   LOGIN BUTTON
=========================== */

.auth-btn{

    width:100%;

    height:58px;

    border:none;

    border-radius:16px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:#fff;

    font-size:15px;

    font-weight:700;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    cursor:pointer;

    transition:.35s ease;

    box-shadow:
        0 12px 30px rgba(108,99,255,.28);

}

.auth-btn:hover{

    transform:translateY(-4px);

    box-shadow:
        0 20px 45px rgba(108,99,255,.35);

}

.auth-btn:active{

    transform:scale(.98);

}

/* ===========================
   LOADER
=========================== */

.btn-loader{

    display:none;

    align-items:center;

    justify-content:center;

    

}

.btn-loader i{

    animation:spin 1s linear infinite;

}

@keyframes spin{

    from{

        transform:rotate(0);

    }

    to{

        transform:rotate(360deg);

    }

}

.auth-btn.loading{

    pointer-events:none;

    opacity:.9;

}

.auth-btn.loading .btn-text{

    display:none;

}

.auth-btn.loading .btn-loader{

    display:flex;

}

/* ===========================
   DIVIDER
=========================== */

.divider{

    display:flex;

    align-items:center;

    margin:34px 0;

}

.divider::before,
.divider::after{

    content:"";

    flex:1;

    height:1px;

    background:var(--border);

}

.divider span{

    padding:0 18px;

    color:var(--text-muted);

    font-size:14px;

    font-weight:600;

}

/* ===========================
   GOOGLE BUTTON
=========================== */

.google-btn{

    width:100%;

    height:58px;

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    cursor:not-allowed;

    transition:.35s;

    color:var(--text);

    font-weight:700;

}

.google-btn img{

    width:22px;

}

.google-btn small{

    color:var(--text-muted);

    font-weight:600;

}

.google-btn:hover{

    border-color:rgba(108,99,255,.25);

    transform:translateY(-2px);

}

/* ===========================
   FOOTER
=========================== */

.auth-footer{

    margin-top:34px;

    text-align:center;

}

.auth-footer p{

    color:var(--text-light);

}

.auth-footer a{

    color:var(--primary);

    font-weight:700;

    transition:.3s;

}

.auth-footer a:hover{

    color:var(--accent);

}

/* ===========================
   ERROR
=========================== */

.error{

    font-size:13px;

    color:#EF4444;

    min-height:18px;

    padding-left:5px;

}

/* ===========================================================
   AUTH CSS
   Part 3
   Responsive • Validation • Animations • Utilities
=========================================================== */

/* ===========================
   INPUT STATES
=========================== */

.input-box.error input{

    border-color:var(--danger);

    box-shadow:
        0 0 0 4px rgba(239,68,68,.12);

}

.input-box.error i{

    color:var(--danger);

}

.input-box.success input{

    border-color:var(--success);

    box-shadow:
        0 0 0 4px rgba(34,197,94,.12);

}

.input-box.success i{

    color:var(--success);

}

/* Shake Animation */

.input-box.error{

    animation:shake .35s ease;

}

@keyframes shake{

    0%{transform:translateX(0);}
    20%{transform:translateX(-5px);}
    40%{transform:translateX(5px);}
    60%{transform:translateX(-5px);}
    80%{transform:translateX(5px);}
    100%{transform:translateX(0);}

}

/* ===========================
   FEATURE HOVER
=========================== */

.feature:hover{

    transform:translateX(8px);

}

.feature:hover .feature-icon{

    transform:
        rotate(8deg)
        scale(1.08);

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:#fff;

}

/* ===========================
   LOGO HOVER
=========================== */

.auth-logo img{

    transition:.35s ease;

}

.auth-logo:hover img{

    transform:
        rotate(-6deg)
        scale(1.05);

}

/* ===========================
   INPUT HOVER
=========================== */

.input-box:hover i{

    color:var(--primary);

}

/* ===========================
   CARD ENTRY
=========================== */

.auth-left{

    animation:slideLeft .8s ease forwards;

}

.auth-right{

    animation:slideRight .8s ease forwards;

}

.auth-card{

    animation:fadeUp .9s ease;

}

@keyframes slideLeft{

    from{

        opacity:0;

        transform:translateX(-50px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}

@keyframes slideRight{

    from{

        opacity:0;

        transform:translateX(50px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ===========================
   FADE UTILITY
=========================== */

.fade{

    animation:fade .4s ease;

}

@keyframes fade{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:1200px){

    .auth-wrapper{

        gap:60px;

    }

    .hero-content h1{

        font-size:3.4rem;

    }

}

@media (max-width:992px){

    .auth-wrapper{

        grid-template-columns:1fr;

        gap:60px;

        padding:60px 0;

    }

    .auth-left{

        text-align:center;

        align-items:center;

    }

    .hero-content p{

        max-width:650px;

        margin:auto;

    }

    .feature{

        justify-content:center;

        text-align:left;

    }

    .auth-card{

        max-width:550px;

        margin:auto;

    }

}

@media (max-width:768px){

    .auth-wrapper{

        width:min(94%,720px);

        padding:40px 0;

    }

    .auth-logo{

        margin-bottom:40px;

    }

    .hero-content{

        margin-bottom:40px;

    }

    .hero-content h1{

        font-size:2.7rem;

    }

    .hero-content p{

        font-size:15px;

    }

    .feature-list{

        gap:20px;

    }

    .feature-icon{

        width:54px;

        height:54px;

        font-size:22px;

    }

    .auth-card{

        padding:32px 24px;

        border-radius:24px;

    }

    .auth-header h2{

        font-size:1.8rem;

    }

}

@media (max-width:576px){

    .hero-content h1{

        font-size:2.2rem;

    }

    .hero-content p{

        font-size:14px;

    }

    .badge{

        font-size:13px;

        padding:10px 16px;

    }

    .auth-card{

        padding:24px 18px;

    }

    .input-box input{

        height:54px;

    }

    .auth-btn{

        height:54px;

    }

    .google-btn{

        height:54px;

    }

    .auth-options{

        flex-direction:column;

        align-items:flex-start;

        gap:16px;

    }

}

@media (max-width:430px){

    .auth-wrapper{

        width:95%;

    }

    .hero-content h1{

        font-size:2rem;

    }

    .hero-content p{

        font-size:14px;

    }

    .feature{

        gap:14px;

    }

    .feature-icon{

        width:48px;

        height:48px;

        border-radius:14px;

        font-size:20px;

    }

    .auth-header h2{

        font-size:1.55rem;

    }

    .auth-card{

        border-radius:20px;

    }

}

@media (max-width:360px){

    .hero-content h1{

        font-size:1.8rem;

    }

    .auth-card{

        padding:20px 16px;

    }

    .input-box input{

        padding:0 50px;

        font-size:14px;

    }

}

/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}

/* ===========================
   UTILITIES
=========================== */

.hidden{

    display:none !important;

}

.text-center{

    text-align:center;

}

.mt-10{

    margin-top:10px;

}

.mt-20{

    margin-top:20px;

}

.mb-20{

    margin-bottom:20px;

}

.w-100{

    width:100%;

}

.pointer{

    cursor:pointer;
}
/* ==========================================================
   TOAST
========================================================== */

.toast-container{

    position:fixed;

    top:30px;

    right:30px;

    width:380px;

    display:flex;

    flex-direction:column;

    gap:14px;

    z-index:9999;

}

.toast{

    position:relative;

    overflow:hidden;

    display:flex;

    align-items:center;

    gap:14px;

    padding:18px 20px;

    border-radius:18px;

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.65);

    box-shadow:0 20px 60px rgba(0,0,0,.12);

    transform:translateX(120%);

    opacity:0;

    transition:.35s;

}

.toast.show{

    transform:translateX(0);

    opacity:1;

}

.toast-icon{

    font-size:24px;

}

.toast.success .toast-icon{

    color:#10B981;

}

.toast.error .toast-icon{

    color:#EF4444;

}

.toast.warning .toast-icon{

    color:#F59E0B;

}

.toast.info .toast-icon{

    color:#3B82F6;

}

.toast-content{

    flex:1;

    color:#111827;

    font-weight:600;

    line-height:1.5;

}

.toast-close{

    border:none;

    background:none;

    cursor:pointer;

    font-size:20px;

    color:#6B7280;

}

.toast-progress{

    position:absolute;

    bottom:0;

    left:0;

    height:4px;

    width:100%;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

    animation:toastProgress 3.5s linear forwards;

}

@keyframes toastProgress{

    from{

        width:100%;

    }

    to{

        width:0;

    }

}

@media(max-width:500px){

    .toast-container{

        width:calc(100% - 24px);

        left:12px;

        right:12px;

        top:18px;

    }

}


.error-text {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    min-height: 18px;
}

.input-box input.error {
    border-color: #ef4444;
}

.input-box input.success {
    border-color: #10b981;
}
/* ===========================================================
   END OF AUTH CSS
=========================================================== */

/* ===========================================================
   REGISTER PAGE ADDITIONS
=========================================================== */

/* Password Strength */

.password-strength{

    margin:-6px 0 10px;

}

.strength-bar{

    width:100%;

    height:8px;

    background:#E5E7EB;

    border-radius:999px;

    overflow:hidden;

}

.strength-fill{

    width:0;

    height:100%;

    border-radius:999px;

    background:linear-gradient(
        90deg,
        #EF4444,
        #F59E0B,
        #22C55E
    );

    transition:.35s ease;

}

#strengthText{

    display:block;

    margin-top:8px;

    font-size:13px;

    font-weight:600;

    color:var(--text-light);

}

/* Terms Checkbox */

.checkbox-container{

    display:flex;

    align-items:flex-start;

    gap:12px;

    margin-top:6px;

    margin-bottom:18px;

    cursor:pointer;

    color:var(--text-light);

    line-height:1.6;

    font-size:14px;

}

.checkbox-container input{

    margin-top:4px;

    width:18px;

    height:18px;

    accent-color:var(--primary);

}

.checkbox-container a{

    color:var(--primary);

    text-decoration:none;

    font-weight:700;

}

.checkbox-container a:hover{

    color:var(--accent);

}

/* Register Button */

#registerBtn{

    margin-top:6px;

}

/* Loader */

.loader{

    width:18px;

    height:18px;

    border:2px solid rgba(255,255,255,.35);

    border-top-color:#fff;

    border-radius:50%;

    animation:spin .8s linear infinite;

}

/* Smooth spacing */

#registerForm{

    display:flex;

    flex-direction:column;

    gap:18px;

}


/* ==========================
   OTP VERIFICATION
========================== */

.otp-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 32px 0 25px;

    flex-wrap: nowrap;
}

.otp-input {
    width: 52px;
    height: 60px;

    flex: 0 0 52px;

    border: 2px solid #d8dcff;

    border-radius: 12px;

    background: #ffffff;

    color: #111827;

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 24px;

    font-weight: 700;

    text-align: center;

    caret-color: #635bff;

    outline: none;

    padding: 0;

    box-sizing: border-box;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.otp-input:hover {
    border-color: #aaa5ff;
}

.otp-input:focus {
    border-color: #635bff;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(99, 91, 255, 0.12),
        0 8px 20px rgba(99, 91, 255, 0.12);

    transform: translateY(-2px);
}

.otp-input:not(:placeholder-shown) {
    border-color: #635bff;
}

.otp-timer {
    text-align: center;

    margin: 10px 0 25px;

    color: #64748b;

    font-size: 14px;

    font-weight: 500;
}

.otp-timer strong {
    color: #334155;

    font-weight: 700;
}


/* ==========================
   OTP Responsive
========================== */

@media (max-width: 600px) {

    .otp-container {
        gap: 7px;
    }

    .otp-input {
        width: 43px;
        height: 54px;

        flex-basis: 43px;

        font-size: 21px;

        border-radius: 10px;
    }

}

@media (max-width: 400px) {

    .otp-container {
        gap: 5px;
    }

    .otp-input {
        width: 39px;
        height: 50px;

        flex-basis: 39px;

        font-size: 19px;
    }

}
