/* Reset */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Body */

body{

    width:100%;
    height:100vh;

    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding-top:50px;

    background:#efefef;

}

/* Main Container */

.container{

    width:900px;

    display:flex;
    flex-direction:column;

    align-items:center;

    padding:20px 0;

    gap:15px;

    background:#f8f8f8;

    border-radius:10px;

}

/* Logo */

.logo{

    margin-bottom:15px;

}

.logo img{

    width:330px;
    height:auto;

}

/* Login Card */

.login-card{

    width:420px;

    background:#ffffff;

    padding:35px;

    border-radius:15px;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

}

.login-card h1{

    text-align:center;

    font-size:45px;

    margin-bottom:5px;

}

.login-card p{

    text-align:center;

    color:#666;

    margin-bottom:30px;

    font-size:15px;

}

.login-card form{

    display:flex;

    flex-direction:column;

}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="email"]{

    width:100%;

    padding:14px;

    margin-bottom:15px;

    border:1px solid #dcdcdc;

    border-radius:8px;

    outline:none;

    font-size:15px;

}

.login-card input:focus{

    border-color:#4da6ff;

}

/* Remember Me & Forgot Password */

.options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    font-size:14px;

}

.options label{

    display:flex;

    align-items:center;

    gap:5px;

}

.options a{

    text-decoration:none;

    color:#555;

}

.options a:hover{

    color:#b933ff;

}

/* Login Button */

button{

    width:100%;

    border:none;

    padding:16px;

    border-radius:12px;

    cursor:pointer;

    font-size:30px;

    font-weight:bold;

    color:white;

    background:linear-gradient(to right,#2fb7ff,#d92fd8);

    transition:.3s;

}

button:hover{

    transform:scale(1.02);

}

/* OTP */

.otp-container{

    display:flex;

    justify-content:center;

    gap:10px;

    margin:30px 0;

}

.otp-input{

    width:50px;

    height:55px;

    text-align:center;

    font-size:24px;

    border:1px solid #ccc;

    border-radius:10px;

    outline:none;

}

.otp-input:focus{

    border-color:#2fb7ff;

}

/* OTP */

.otp-container{
    display:flex;
    justify-content:center;
    gap:10px;
    margin:30px 0;
}

.otp-input{
    width:50px !important;
    height:55px !important;
    text-align:center;
    font-size:24px;
    border:1px solid #ccc;
    border-radius:10px;
    outline:none;
    margin:0 !important;
    flex:none;
}

.otp-input:focus{
    border-color:#2fb7ff;
}

/* Password Eye */

.password-container{

    position:relative;
    display:flex;
    align-items:center;

}

.password-container input{

    width:100%;

    padding-right:45px;

}

.password-container i{

    position:absolute;

    right:15px;

    top:50%;

    transform:translateY(-50%);

    cursor:pointer;

    color:#888;

    font-size:18px;

}

.password-container i:hover{

    color:#2fb7ff;

}

/* Input with Icons */

.input-container,
.password-container{

    position:relative;

    margin-bottom:15px;

}

.input-container input,
.password-container input{

    width:100%;
    height:50px;

    padding:0 45px 0 15px;

    border:1px solid #dcdcdc;
    border-radius:8px;
    outline:none;

    font-size:15px;
    line-height:50px;

}


.toggle-password{

    position:absolute;

    right:15px;

    top:50%;

    transform:translateY(-50%);

    font-size:16px;

    color:#888;

    cursor:pointer;

}

.toggle-password:hover{

    color:#2fb7ff;

}

.input-container,
.password-container{
    display:flex;
    align-items:center;
}

.input-container input,
.password-container input{
    margin-bottom:0 !important;
}

/* Success & Error Messages */

.success-message{

    background:#d4edda;
    color:#155724;

    border:1px solid #c3e6cb;

    padding:12px;

    border-radius:8px;

    margin-bottom:15px;

    text-align:center;

    font-size:14px;

}

.error-message{
    background:#fff0f0;
    border:1px solid #f2b8b8;
    color:#c62828;

    padding:11px 13px;

    border-radius:8px;

    font-size:13px;

    margin-bottom:18px;

    text-align:left;
}

/* ==========================================
   PASSWORD REQUIREMENTS
========================================== */

.password-requirements {
    margin-top: 7px;
    font-size: 12px;
}

.password-requirements p {
    margin: 0 0 4px;
    font-size: 12px;
    color: #555;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    margin: 3px 0;
    color: #e74c3c;
    transition: color 0.2s ease;
}

.password-requirements li.valid {
    color: #22a06b;
    font-weight: 500;
}

/* ==========================================
   SUCCESS MODAL
========================================== */

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.success-modal {
    width: 380px;
    max-width: 90%;
    background: #ffffff;

    padding: 35px 30px;
    border-radius: 15px;

    text-align: center;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.success-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #d4edda;
    color: #155724;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
}

.success-modal h2 {
    margin-bottom: 10px;

    font-size: 23px;
    color: #333;
}

.success-modal p {
    margin-bottom: 22px;

    font-size: 14px;
    color: #666;
}

.success-modal button {
    width: 100%;

    padding: 12px;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    font-size: 15px;
    font-weight: bold;

    color: #ffffff;

    background: linear-gradient(
        to right,
        #2fb7ff,
        #d92fd8
    );

    transition: 0.3s;
}

.success-modal button:hover {
    transform: scale(1.02);
}

/* =========================================================
   MOBILE RESPONSIVE
   FORGOT PASSWORD / VERIFY CODE
========================================================= */

@media (max-width: 600px) {

    body {
        min-height: 100vh;
        height: auto;

        padding: 25px 16px;
    }

    .container {
        width: 100%;
        max-width: 100%;

        padding: 10px 0 25px;

        border-radius: 0;
        background: transparent;
    }

    .logo {
        width: 100%;
        margin-bottom: 12px;

        display: flex;
        justify-content: center;
    }

    .logo img {
        width: clamp(180px, 65vw, 280px);
        max-width: 100%;
        height: auto;
    }

    .login-card {
        width: 100%;
        max-width: 420px;

        padding: clamp(22px, 6vw, 35px);

        border-radius: 15px;
    }

    .login-card h1 {
        font-size: clamp(28px, 8vw, 40px);
        line-height: 1.15;
    }

    .login-card p {
        font-size: 14px;
        line-height: 1.5;

        margin-bottom: 24px;
    }

    .login-card input[type="text"],
    .login-card input[type="password"],
    .login-card input[type="email"] {
        width: 100%;
        font-size: 14px;
    }

    .login-card button {
        width: 100%;

        padding: 13px 12px;

        font-size: 20px;
    }

    /* OTP */

    .otp-container {
        width: 100%;

        display: flex;
        justify-content: center;

        gap: clamp(5px, 2vw, 10px);

        margin: 24px 0;
    }

    .otp-input {
        width: clamp(38px, 12vw, 50px) !important;
        height: clamp(45px, 14vw, 55px) !important;

        flex: 0 1 auto;

        font-size: clamp(19px, 6vw, 24px);
    }

    .resend-section {
        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    body {
        padding: 20px 12px;
    }

    .login-card {
        padding: 20px 16px;
    }

    .login-card h1 {
        font-size: 27px;
    }

    .login-card p {
        font-size: 13px;
    }

    .otp-container {
        gap: 4px;
    }

    .otp-input {
        width: 36px !important;
        height: 43px !important;

        font-size: 18px;
    }

    .login-card button {
        font-size: 18px;
    }

}