* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f8ff;
    color: #102653;
}

.navbar {
    height: 100px !important;
    padding: 0;
}

.edunest-logo {
    width: 160px;
    height: auto;
    display: block;
}

.forgot-page {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 0;
}

.forgot-card {
    width: 100%;
    max-width: 850px;
    background: #fff;
    border: 1px solid #dce7f5;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(31, 91, 160, 0.08);
}

.forgot-form {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 70px;
}

.form-content {
    width: 100%;
    max-width: 650px;
}

.heading-section {
    margin-bottom: 35px;
}

.heading-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: #0b2555;
    margin-bottom: 8px;
}

.heading-section p {
    font-size: 18px;
    color: #637391;
    margin: 0;
}

.form-label {
    font-size: 16px;
    font-weight: 600;
    color: #102653;
    margin-bottom: 8px;
}

.custom-input {
    height: 54px;
    border: 1px solid #d4deec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.custom-input .input-group-text {
    background: #fff;
    border: none;
    color: #637391;
    font-size: 17px;
    padding-left: 15px;
    padding-right: 12px;
}

.custom-input .form-control {
    border: none;
    box-shadow: none;
    font-size: 15px;
    color: #243858;
}

.custom-input .form-control::placeholder {
    color: #8795ad;
}

.custom-input:focus-within {
    border-color: #1769ff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.1);
}

.password-toggle {
    cursor: pointer;
    padding-left: 14px !important;
    padding-right: 16px !important;
}

.password-toggle:hover {
    color: #1769ff !important;
    background: #f5f9ff !important;
}

.password-help {
    display: block;
    margin-top: 6px;
    color: #6e7d97;
    font-size: 13px;
}

.password-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

.reset-btn {
    height: 54px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, #185bea, #087df5);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    transition: 0.2s;
    margin-top: 8px;
}

.reset-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(24, 91, 234, 0.25);
}

.back-login {
    margin-top: 25px;
}

.back-login a {
    text-decoration: none;
    color: #1264ed;
    font-size: 15px;
    font-weight: 500;
}

.back-login a:hover {
    text-decoration: underline;
}

.back-login i {
    margin-right: 7px;
}

@media (max-width: 767px) {
    .navbar {
        height: 65px;
    }

    .edunest-logo {
        width: 135px;
    }

    .forgot-page {
        min-height: calc(100vh - 65px);
        padding: 20px 12px;
    }

    .forgot-card {
        border-radius: 14px;
    }

    .forgot-form {
        padding: 35px 25px;
    }

    .heading-section {
        margin-bottom: 28px;
    }

    .heading-section h1 {
        font-size: 28px;
    }

    .heading-section p {
        font-size: 15px;
        line-height: 1.5;
    }

    .form-label {
        font-size: 15px;
    }

    .custom-input {
        height: 50px;
    }

    .custom-input .form-control {
        font-size: 14px;
    }

    .custom-input .input-group-text {
        font-size: 16px;
    }

    .password-help {
        font-size: 12px;
    }

    .reset-btn {
        height: 50px;
        font-size: 15px;
    }

    .back-login {
        margin-top: 22px;
    }

    .back-login a {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .forgot-form {
        padding: 30px 18px;
    }

    .heading-section h1 {
        font-size: 25px;
    }

    .heading-section p {
        font-size: 14px;
    }

    .form-label {
        font-size: 14px;
    }

    .custom-input {
        height: 48px;
    }

    .custom-input .form-control {
        font-size: 13px;
    }

    .reset-btn {
        height: 48px;
        font-size: 14px;
    }
}