﻿:root {
    --bg: #06111d;
    --bg-soft: #0b1930;
    --bg-card: rgba(10, 25, 48, 0.75);
    --text: #f3f7ff;
    --muted: #a2b1c7;
    --border: rgba(108, 150, 214, 0.16);
    --primary: #20c7ff;
    --primary-2: #4de2d0;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --container: 1240px;
    --transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at 78% 20%, rgba(37, 183, 255, 0.22), transparent 20%), radial-gradient(circle at 70% 55%, rgba(0, 201, 255, 0.14), transparent 26%), linear-gradient(180deg, #04101b 0%, #071424 100%);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 13, 24, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text span {
        font-size: 12px;
        color: var(--muted);
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

    .lang-btn.active {
        background: linear-gradient(135deg, var(--primary), var(--primary-2));
        color: #06111d;
        font-weight: 700;
    }

.forgot-page {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 0 70px;
}

.forgot-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.forgot-glow-1 {
    width: 320px;
    height: 320px;
    background: rgba(32, 199, 255, 0.12);
    top: 80px;
    left: 6%;
}

.header-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #06111d;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(32, 199, 255, 0.2);
    transition: var(--transition);
}

    .header-back-btn:hover {
        transform: translateY(-1px);
    }

.forgot-glow-2 {
    width: 360px;
    height: 360px;
    background: rgba(77, 226, 208, 0.10);
    right: 6%;
    bottom: 40px;
}

.forgot-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forgot-card {
    width: 100%;
    max-width: 540px;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.forgot-card-top {
    margin-bottom: 28px;
    text-align: center;
}

.forgot-badge {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.forgot-card-top h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.2;
}

.forgot-card-top p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.forgot-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .form-group label {
        font-size: 14px;
        font-weight: 700;
        color: #dbe7f8;
    }

    .form-group input {
        width: 100%;
        height: 56px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
        border-radius: 16px;
        padding: 0 16px;
        color: var(--text);
        outline: none;
        transition: var(--transition);
    }

        .form-group input::placeholder {
            color: #8192aa;
        }

        .form-group input:focus {
            border-color: rgba(32, 199, 255, 0.55);
            box-shadow: 0 0 0 4px rgba(32, 199, 255, 0.08);
        }

.forgot-submit-btn {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #06111d;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(32, 199, 255, 0.2);
    transition: var(--transition);
}

    .forgot-submit-btn:hover {
        transform: translateY(-1px);
    }

.login-back-btn {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 700;
    transition: var(--transition);
}

    .login-back-btn:hover {
        border-color: rgba(32, 199, 255, 0.45);
        color: var(--primary);
    }

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 28px 0;
    background: rgba(0, 0, 0, 0.14);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand {
    max-width: 620px;
}

.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.footer-flag {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
}

.footer-brand p {
    margin: 8px 0 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #d5e2f4;
}

    .footer-links a {
        color: inherit;
        text-decoration: none;
        opacity: 0.82;
    }

        .footer-links a:hover {
            opacity: 1;
        }

@media (max-width: 1100px) {
    .header-inner {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 18px;
    }

    .brand {
        width: 100%;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .brand-text {
        align-items: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-inner {
        min-height: auto;
        padding: 10px 0 8px;
        gap: 8px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .forgot-card {
        padding: 24px 18px;
    }

    .forgot-card-top h1 {
        font-size: 28px;
    }

    .footer-inner {
        flex-direction: column;
    }
}


.form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
}

.form-alert-error {
    border: 1px solid rgba(255, 107, 122, 0.35);
    background: rgba(255, 107, 122, 0.10);
    color: #ffb8bf;
}

.form-alert-success {
    border: 1px solid rgba(77, 226, 208, 0.30);
    background: rgba(77, 226, 208, 0.10);
    color: #bffaf2;
}

.twofa-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
}

.twofa-box {
    width: 58px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

    .twofa-box:focus {
        border-color: rgba(32, 199, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(32, 199, 255, 0.08);
    }

    .twofa-box::-webkit-outer-spin-button,
    .twofa-box::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .twofa-box[type="number"] {
        -moz-appearance: textfield;
    }

@media (max-width: 768px) {
    .twofa-group {
        gap: 8px;
    }

    .twofa-box {
        width: 46px;
        height: 54px;
        font-size: 24px;
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .twofa-box {
        width: 42px;
        height: 50px;
        font-size: 22px;
    }
}

.twofa-timer {
    margin-top: 16px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-align: center;
}

.twofa-timer-danger {
    color: #ff7a7a;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    filter: invert(1);
}