* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background: #f5f7fb;
    height: 100vh;
}

.forgot-box {
    background: #fff;
    width: 60%;
    margin: 30px auto;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.forgot {
    background: linear-gradient(rgba(18, 141, 207, 0.712), rgba(18, 201, 207, 0.705)), url("../assets/image/b3b3faed5a578a21a8fcec059f989ca0964f6737.png");
    background-size: cover;
    color: white;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.forgot h2 , .forgot p {
    color: white;

}


.form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    text-align: right;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.form-subtitle {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.9;
}

.forgot-form-wrapper {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    color: #444;
}

.input-wrapper input {
    width: 100%;
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    outline: none;
    font-size: 14px;
    transition: 0.5s;
    background: #fafafa;
}

.input-wrapper input:focus {
    border-color: #128CCF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18,140,207,0.1);
}

.submit-btn {
    width: 100%;
    padding: 7px 20px;
    border: none;
    border-radius: 28px;
    background: #128CCF;              
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.5s;
}

.submit-btn:hover {
    background: #0f76b3;
    box-shadow: 0 5px 15px rgba(18,140,207,0.3);
}

.login-link {
    text-align: center;
    margin-top: 15px;
}

.login-link a {
    font-size: 13px;
    color: #128CCF;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}



@media (max-width: 1024px) {
    .forgot-box {
        width: 90%;
        grid-template-columns: 1fr 1.5fr;
    }

    .forgot-form-wrapper {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 25px 15px;
        overflow: visible;
    }

    .forgot-box {
        width: 95%;
        grid-template-columns: 1fr;
        margin: 20px auto;
    }


    .forgot-form-wrapper {
        padding: 30px 20px;
    }

    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .forgot-box {
        width: 95%;
        margin: 15px auto;
        border-radius: 10px;
    }

    .form-title {
        font-size: 18px;
        
    }
    .form-subtitle {
        font-size: 13px;  
    }

    .submit-btn {
        font-size: 13px;
        padding: 10px;
    }

    .login-link a {
        font-size: 12px;
    }
}

body.dark-mode {
    background: #151516;
    color: #e0e0e0;
}

body.dark-mode .forgot-box {
    background: #16213e;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

body.dark-mode .forgot-form-wrapper {
    background: #16213e;
}


body.dark-mode .input-group label {
    color: #bbb;
}

body.dark-mode .input-wrapper input {
    background: #0f3460;
    border-color: #1a4a8a;
    color: #e0e0e0;
}

body.dark-mode .input-wrapper input:focus {
    border-color: #84ccf3;
    box-shadow: 0 0 0 4px rgba(18,140,207,0.2);
}

body.dark-mode .info-box {
    background: #0f3460;
    border-color: #84ccf3;
    color: #84ccf3;
}
