body.login {
    background:
        radial-gradient(circle at top left, rgba(136, 179, 255, 0.2), transparent 24%),
        linear-gradient(180deg, rgba(6, 11, 20, 0.76), rgba(6, 11, 20, 0.9)),
        var(--bg-login) center/cover fixed;
}

.wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px 20px;
    position: relative;
    z-index: 2;
}

.form-container {
    width: min(100%, 480px);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(14, 22, 40, 0.88);
    box-shadow: var(--shadow);
}

.form-section {
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    margin: 0 0 18px;
    text-align: center;
    font-family: "Fraunces", serif;
    font-size: 2.4rem;
}

.form-section form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-section input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-section input::placeholder {
    color: var(--text-soft);
}

.form-section input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(136, 179, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 8px 0 2px;
}

.form-section button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #07111f;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.form-section button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(136, 179, 255, 0.22);
}

.form-section .error,
.form-section .attempts-info,
.form-section .resend-link,
.form-section .register-link,
.form-section .forgot-password-link {
    margin: 6px 0 0;
    text-align: center;
}

.form-section .error {
    color: #ff9e9e;
}

.form-section .attempts-info {
    color: var(--accent-3);
}

.form-section .resend-link,
.form-section .register-link,
.form-section .forgot-password-link {
    color: var(--text-soft);
}

.form-section .resend-link a,
.form-section .register-link a,
.form-section .forgot-password-link a {
    color: var(--accent);
    text-decoration: none;
}

.form-section .resend-link p {
    display: inline;
}

@media (max-width: 767px) {
    .wrapper {
        align-items: flex-start;
        padding-top: 24px;
    }

    .form-container {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .form-section h2 {
        font-size: 2rem;
    }

    .g-recaptcha {
        transform: scale(0.88);
        transform-origin: center;
    }
}
