:root {
    --bg: #07111f;
    --panel: #ffffff;
    --text: #0b1524;
    --muted: #63748a;
    --blue: #1d8cff;
    --blue-2: #0b5ed7;
    --cyan: #40c9ff;
    --line: #d7e1ee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(29, 140, 255, 0.3), transparent 34%),
        linear-gradient(135deg, #07111f, #0a1d33 58%, #0b3767);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes growth {
    from { transform: scale(0.96); }
    to { transform: scale(1); }
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn linear 0.15s;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, 0.62);
}

.modal__body {
    width: min(500px, 100%);
    position: relative;
    z-index: 1;
    animation: growth linear 0.15s;
    max-height: 92vh;
    overflow-y: auto;
}

.auth-form {
    background-color: var(--panel);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.auth-form__container {
    padding: 30px;
}

.auth-form__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.auth-form__heading {
    font-size: 34px;
    font-weight: 900;
    color: var(--text);
}

.auth-form__switch-btn {
    font-size: 15px;
    font-weight: 800;
    color: var(--blue-2);
}

.auth-form__input {
    width: 100%;
    height: 48px;
    margin-top: 13px;
    padding: 0 15px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid var(--line);
    outline: none;
    background-color: #f8fbff;
}

.auth-form__input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 140, 255, 0.12);
}

.auth-form__aside {
    margin-top: 16px;
}

.auth-form__policy-text,
.auth-form__help-link {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.auth-form__policy-text {
    text-align: center;
}

.auth-form__help {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.auth-form__help-forgot {
    color: var(--blue-2);
    font-weight: 800;
}

.auth-form__help-separate {
    width: 1px;
    height: 18px;
    background: var(--line);
}

.auth-form__controls {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    min-width: 116px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

.btn--normal {
    background: #eef4fb;
    color: var(--text);
    border-color: #dce7f3;
}

.btn--primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #fff;
    box-shadow: 0 12px 28px rgba(29, 140, 255, 0.28);
}

.auth-form__socials {
    display: flex;
    gap: 12px;
    padding: 18px 30px 30px;
    background: #f3f7fc;
}

.auth-form__socials .btn {
    flex: 1;
    min-width: 0;
    color: #fff;
}

.auth-form__socials-icon {
    margin-right: 8px;
}

.auth-form__message {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 800;
    font-size: 14px;
}

.auth-form__message--error {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #ffd0cc;
}

.auth-form__message--success {
    color: #0f766e;
    background: #e7fffa;
    border: 1px solid #b8f2e6;
}

@media (max-width: 520px) {
    .auth-form__container,
    .auth-form__socials {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-form__header,
    .auth-form__controls,
    .auth-form__socials {
        flex-direction: column;
        align-items: stretch;
    }
}
