:root {
    --primary-color: #0056b3;
    --primary-light: #51a5e4;
    --primary-dark: #003d82;
    --container-bg: #f4f7fb;
    --text-main: #101828;
    --text-muted: #667085;
    --border-color: #dbe7f5;
    --font-family: 'Manrope', sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-family);
    background: #eaf2fb;
    overflow: hidden;
}

.main-wrapper {
    position: relative;
    min-height: 100svh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vh, 20px);
    border-top: 4px solid var(--primary-color);
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 86, 179, 0.08), transparent 30%),
        radial-gradient(circle at 82% 78%, rgba(76, 176, 231, 0.12), transparent 28%),
        var(--container-bg);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(20px, 3.2vh, 30px);
    text-align: center;
}

.recovery-logo-img {
    width: clamp(64px, 9vh, 84px);
    height: clamp(64px, 9vh, 84px);
    object-fit: contain;
}

.system-title {
    margin-top: clamp(8px, 1.6vh, 13px);
    color: #102a51;
    font-size: clamp(1.9rem, 3.5vh, 2.32rem);
    font-weight: 800;
    line-height: 1;
}

.system-title span {
    color: #4cb0e7;
}

.system-subtitle {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.95vh, 1.08rem);
}

.recovery-card {
    width: min(100%, 560px);
    padding: clamp(32px, 4.8vh, 46px) clamp(30px, 4vw, 46px);
    border: 1px solid rgba(219, 231, 245, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.08);
}

.recovery-card h2 {
    margin: 0 0 clamp(9px, 1.6vh, 12px);
    color: var(--text-main);
    font-size: clamp(1.52rem, 3vh, 1.82rem);
    font-weight: 800;
    line-height: 1.2;
}

.recovery-card p {
    margin: 0 0 clamp(18px, 2.8vh, 24px);
    color: var(--text-muted);
    font-size: clamp(1rem, 2vh, 1.12rem);
    line-height: 1.5;
}

.form-group {
    margin-bottom: clamp(14px, 2.3vh, 18px);
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 0.96rem;
    font-weight: 800;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    min-height: clamp(58px, 7vh, 66px);
    padding: 0 52px 0 22px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background: #f8fbff;
    color: #1d2939;
    font-family: var(--font-family);
    font-size: clamp(1.06rem, 2.1vh, 1.14rem);
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-with-icon input:focus {
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(81, 165, 228, 0.16);
}

.input-with-icon input::placeholder {
    color: #98a2b3;
    font-weight: 500;
}

.input-with-icon i {
    position: absolute;
    top: 50%;
    right: 20px;
    color: #98a2b3;
    transform: translateY(-50%);
    pointer-events: none;
}

.btn-submit {
    width: 100%;
    min-height: clamp(60px, 7.2vh, 68px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #0056b3;
    color: #ffffff;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: clamp(1.06rem, 2.1vh, 1.14rem);
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(0, 86, 179, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(0, 86, 179, 0.24);
}

.btn-submit:focus-visible,
.back-login:focus-visible,
.help-text a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(81, 165, 228, 0.2);
}

.divider {
    height: 1px;
    margin: clamp(16px, 2.7vh, 22px) 0;
    background: #e8eef6;
}

.back-login {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.back-login:hover {
    background: #eef6ff;
    color: var(--primary-dark);
}

.help-text {
    margin-top: clamp(10px, 1.8vh, 14px);
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.help-text a {
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: none;
}

.official-info {
    margin-top: clamp(16px, 3vh, 28px);
    max-width: 560px;
    color: var(--text-muted);
    font-size: clamp(0.82rem, 1.7vh, 0.94rem);
    line-height: 1.45;
    text-align: center;
}

.security-tip {
    position: absolute;
    right: clamp(14px, 2vw, 24px);
    bottom: clamp(14px, 2vw, 24px);
    width: min(300px, 24vw);
    overflow: hidden;
    border: 1px solid rgba(219, 231, 245, 0.92);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
}

.security-img {
    position: relative;
    height: clamp(70px, 12vh, 96px);
    background:
        linear-gradient(rgba(0, 43, 78, 0.45), rgba(0, 43, 78, 0.45)),
        url('../img/login-background.webp') center / cover;
}

.security-img svg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.security-content {
    padding: 12px 14px;
    background: #f8fbff;
}

.security-title {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.security-desc {
    color: #4b5565;
    font-size: 0.76rem;
    line-height: 1.35;
}

@media (max-width: 1040px) {
    body {
        overflow-y: auto;
    }

    .main-wrapper {
        height: auto;
        min-height: 100svh;
        justify-content: flex-start;
        padding-bottom: 16px;
    }

    .security-tip {
        position: static;
        width: min(100%, 390px);
        margin-top: 14px;
    }

    .security-img {
        height: 76px;
    }
}

@media (max-width: 560px) {
    .main-wrapper {
        padding: 12px;
    }

    .logo-section {
        margin-bottom: 12px;
    }

    .recovery-card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .official-info {
        margin-top: 12px;
    }
}

@media (max-height: 720px) and (min-width: 1041px) {
    .main-wrapper {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo-section {
        margin-bottom: 10px;
    }

    .recovery-logo-img {
        width: 56px;
        height: 56px;
    }

    .system-title {
        margin-top: 6px;
        font-size: 1.62rem;
    }

    .system-subtitle,
    .official-info {
        font-size: 0.78rem;
    }

    .recovery-card {
        width: min(100%, 520px);
        padding: 24px 28px;
    }

    .recovery-card p {
        margin-bottom: 12px;
        line-height: 1.38;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .divider {
        margin: 12px 0;
    }

    .official-info {
        margin-top: 10px;
    }

    .security-tip {
        width: 270px;
    }

    .security-img {
        height: 64px;
    }

    .security-content {
        padding: 10px 12px;
    }
}
