:root {
    --bg-1: #f4f7fb;
    --bg-2: #e8eef7;
    --card: #ffffff;
    --text: #1b263b;
    --border: #d9e1ea;
    --primary: #1b263b;
    --primary-dark: #0d1b2a;
    --info-bg: #eef4ff;
    --info-border: #cddcff;
    --info-text: #163a66;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100dvh;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
    color: var(--text);
}

.forgot-page {
    width: 100%;
    min-height: 100dvh;

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

    padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);
}

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

    background: var(--card);
    border-radius: 20px;
    padding: 24px 18px;

    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.05);

    text-align: center;
}

.logo {
    width: 170px;
    max-width: 75%;
    margin: 0 auto 18px;
    display: block;
}

h1 {
    font-size: 28px;
    margin: 0 0 22px;
    color: var(--text);
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin: 18px 0 20px;
}

.subtitle {
    font-size: 14px;
    color: #8a94a6;
    margin: 0;
    line-height: 1.4;
}

.line {
    height: 1px;
    width: 42px;
    background: #e2e8f0;
    flex: 0 0 auto;
}

.info-message {
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: left;

    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info-text);
    font-weight: 600;
}

.forgot-form {
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;

    color: var(--text);
}

input[type="text"] {
    width: 100%;
    height: 52px;

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

    padding: 0 14px;

    font-size: 16px;
    background: #fff;

    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 38, 59, 0.08);
}

.btn-forgot {
    width: 100%;
    height: 54px;

    margin-top: 8px;

    border: none;
    border-radius: 14px;

    background: var(--primary);
    color: #fff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn-forgot:hover {
    background: var(--primary-dark);
}

.btn-forgot:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.back-login {
    display: inline-block;

    margin-top: 18px;

    font-size: 14px;
    font-weight: 700;

    color: var(--primary);
    text-decoration: none;
}

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

.lang-switch {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin: 8px 0 18px;
    flex-wrap: wrap;
}

.lang-flag {
    width: 40px;
    height: 40px;
    display: inline-block;
}

.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lang-flag:hover {
    transform: scale(1.08);
}

.lang-flag.is-active img {
    outline: 2px solid #1f4f8a;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .forgot-card {
        max-width: 480px;
        padding: 36px 32px;
    }

    h1 {
        font-size: 32px;
    }

    .logo {
        width: 200px;
    }

    .subtitle {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .forgot-page {
        padding: 40px;
    }

    .forgot-card {
        max-width: 520px;
        padding: 44px 40px;
        border-radius: 22px;
    }

    h1 {
        font-size: 34px;
    }

    input[type="text"] {
        height: 56px;
        font-size: 17px;
    }

    .btn-forgot {
        height: 56px;
        font-size: 17px;
    }
}