* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand: #0a58ca;
    --brand-hover: #0847a5;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d9dee7;
    --bg: #f5f7fb;
    --card: #ffffff;
    --danger-bg: #fdecec;
    --danger-text: #b42318;
    --success-bg: #ecfdf3;
    --success-text: #067647;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.forgot-page {
    min-height: 100vh;
    background: var(--bg);
    font-family: Arial, sans-serif;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 16px;
    overflow-x: hidden;
}

.forgot-card {
    width: 100%;
    max-width: 430px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 28px 24px 24px;
}

.forgot-title {
    text-align: center;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    color: #111111;
    margin-bottom: 10px;
}

.forgot-subtitle {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 22px;
}

.forgot-message {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.forgot-message.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.forgot-message.error {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.forgot-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #4b5563;
    line-height: 1.4;
}

.input-field {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.input-field::placeholder {
    color: #9aa3b2;
}

.input-field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.12);
}

.primary-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.primary-btn:hover {
    background: var(--brand-hover);
}

.bottom-link {
    margin-top: 20px;
    text-align: center;
}

.bottom-link a {
    color: var(--brand);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.bottom-link a:hover {
    text-decoration: underline;
}

/* TABLET */
@media (max-width: 768px) {
    body.forgot-page {
        padding: 20px 14px;
    }

    .forgot-card {
        max-width: 100%;
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .forgot-title {
        font-size: 30px;
    }
}

/* MOBILE */
@media (max-width: 575px) {
    body.forgot-page {
        padding: 12px;
    }

    .forgot-card {
        max-width: 100%;
        width: 100%;
        border-radius: 14px;
        padding: 20px 14px 18px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }

    .forgot-title {
        font-size: 28px;
    }

    .forgot-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .forgot-message {
        font-size: 13px;
        padding: 10px 12px;
        margin-bottom: 14px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 7px;
    }

    .input-field {
        height: 48px;
        font-size: 14px;
        padding: 0 12px;
    }

    .primary-btn {
        height: 48px;
        font-size: 15px;
    }

    .bottom-link a {
        font-size: 14px;
    }
}

/* EXTRA SMALL */
@media (max-width: 380px) {
    .forgot-card {
        padding: 18px 12px 16px;
    }

    .forgot-title {
        font-size: 25px;
    }

    .input-field,
    .primary-btn {
        height: 46px;
    }
}