* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #24342e;
    background: #edf4f0;
}

button,
input {
    font: inherit;
}

.forgot-page {
    min-height: 100vh;
}

.forgot-wrapper {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 46%) 1fr;
}

.forgot-brand-panel {
    position: relative;
    min-height: 100vh;
    padding: 48px 60px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 255, 255, 0.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 78%,
            rgba(255, 255, 255, 0.10),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #0a442e 0%,
            #116943 55%,
            #198754 100%
        );
}

.forgot-brand-panel::before,
.forgot-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.forgot-brand-panel::before {
    width: 330px;
    height: 330px;
    right: -170px;
    top: -120px;
    border: 55px solid rgba(255, 255, 255, 0.06);
}

.forgot-brand-panel::after {
    width: 260px;
    height: 260px;
    left: -140px;
    bottom: -130px;
    border: 45px solid rgba(255, 255, 255, 0.05);
}

.brand-logo,
.brand-content,
.security-features,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 98px;
    height: 98px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.19);
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-content {
    margin-top: 68px;
    max-width: 570px;
}

.brand-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.10);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-content h1 {
    margin: 20px 0 14px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.brand-content p {
    margin: 0;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.75;
}

.security-features {
    margin-top: 58px;
    display: grid;
    gap: 18px;
    max-width: 540px;
}

.security-item {
    padding: 18px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 15px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

.security-item > i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #0f6944;
    background: #ffffff;
    font-size: 20px;
}

.security-item div {
    min-width: 0;
}

.security-item strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 15px;
}

.security-item span {
    display: block;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
    line-height: 1.5;
}

.brand-footer {
    margin-top: auto;
    padding-top: 40px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}

.forgot-form-panel {
    min-height: 100vh;
    padding: 40px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(25, 135, 84, 0.08),
            transparent 30%
        ),
        #f6faf8;
}

.forgot-card {
    width: 100%;
    max-width: 480px;
    padding: 42px;
    border: 1px solid #e1eae5;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 24px 70px rgba(22, 74, 51, 0.12),
        0 3px 12px rgba(22, 74, 51, 0.05);
}

.mobile-logo {
    display: none;
}

.form-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f6040, #198754);
    box-shadow: 0 12px 28px rgba(25, 135, 84, 0.27);
    font-size: 27px;
}

.forgot-card h2 {
    margin: 0;
    color: #1c3027;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.form-subtitle {
    margin: 12px 0 26px;
    color: #687970;
    font-size: 14px;
    line-height: 1.7;
}

.alert {
    margin-bottom: 22px;
    padding: 14px 15px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.55;
}

.alert i {
    margin-top: 2px;
    flex: 0 0 auto;
}

.alert-error {
    color: #9d2525;
    border: 1px solid #f0c7c7;
    background: #fff0f0;
}

.alert-success {
    color: #12653e;
    border: 1px solid #bfe3cf;
    background: #edf9f2;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #31483d;
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 1;
    color: #7a8b82;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 47px;
    border: 1px solid #ccd9d2;
    border-radius: 11px;
    outline: none;
    color: #21342b;
    background: #ffffff;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #9aa8a1;
}

.input-wrapper input:focus {
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.11);
}

.input-wrapper input.input-error {
    border-color: #d94848;
    background: #fffafa;
    box-shadow: 0 0 0 4px rgba(217, 72, 72, 0.08);
}

.field-error {
    min-height: 17px;
    margin-top: 7px;
    display: block;
    color: #c43737;
    font-size: 12px;
}

.submit-button {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #0f6040, #198754);
    box-shadow: 0 12px 25px rgba(25, 135, 84, 0.24);
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(25, 135, 84, 0.29);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.back-login {
    margin-top: 24px;
    text-align: center;
}

.back-login a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #166b45;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.back-login a:hover {
    text-decoration: underline;
}

.help-note {
    margin-top: 28px;
    padding-top: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-top: 1px solid #e5ece8;
    color: #7b8a82;
    font-size: 12px;
    line-height: 1.55;
}

.help-note i {
    margin-top: 2px;
    color: #198754;
}

@media (max-width: 960px) {
    .forgot-wrapper {
        grid-template-columns: 1fr;
    }

    .forgot-brand-panel {
        display: none;
    }

    .forgot-form-panel {
        padding: 28px 18px;
    }

    .forgot-card {
        max-width: 500px;
    }

    .mobile-logo {
        width: 84px;
        height: 84px;
        margin: 0 auto 25px;
        padding: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e2ebe6;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 10px 28px rgba(22, 74, 51, 0.10);
    }

    .mobile-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .form-icon {
        margin-right: auto;
        margin-left: auto;
    }

    .forgot-card h2,
    .form-subtitle {
        text-align: center;
    }
}

@media (max-width: 540px) {
    .forgot-form-panel {
        align-items: flex-start;
        padding: 18px 12px;
    }

    .forgot-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .forgot-card h2 {
        font-size: 25px;
    }

    .form-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        font-size: 23px;
    }
}