.auth-page {
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 34px 20px 60px;
}

.auth-card {
    width: 100%;
    max-width: 390px;
}

.brand {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin: 0 auto 42px;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-card .brand-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 32px;
}

.auth-tab {
    position: relative;
    padding: 14px 8px 16px;
    color: var(--color-text-muted);
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.auth-tab.active {
    color: var(--color-primary);
}

.auth-tab.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--color-primary);
    content: '';
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.form-field label {
    margin-bottom: 10px;
    font-size: .76rem;
    font-weight: 700;
}

.form-field input {
    height: 50px;
    padding: 0 14px;
    border: 1px solid #e4ddd8;
    border-radius: 11px;
    background-color: #fff;
    color: var(--color-text);
    font: inherit;
    font-size: .86rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input::placeholder {
    color: #858585;
}

.form-field input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-input);
}

.form-message {
    margin-bottom: 22px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: .8rem;
}

.form-message--error {
    border: 1px solid #f3b4b4;
    background-color: var(--color-danger-light);
    color: #a90000;
}

.form-message--success {
    border: 1px solid #aad9b3;
    background-color: var(--color-success-light);
    color: #176126;
}

.auth-submit,
.auth-test-button {
    height: 50px;
    border-radius: 11px;
    font-weight: 700;
}

.auth-submit {
    margin-top: 30px;
}

.login-button {
    margin-top: 18px;
}

.social-divider {
    margin: 28px 0 18px;
    color: #858585;
    font-size: .72rem;
    text-align: center;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.social-button {
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #e5ddd8;
    border-radius: 10px;
    background-color: #fff;
    color: #171717;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.social-button:hover {
    border-color: #cfc4bd;
    background-color: #faf8f6;
}

.google-icon,
.facebook-icon {
    font-weight: 800;
}

.facebook-icon {
    font-family: Arial, Helvetica, sans-serif;
    font-size: .85rem;
}

.auth-footer {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 48px 0 0;
    color: #848484;
    font-size: .72rem;
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 4.5rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--color-primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (max-width: 420px) {
    .auth-page {
        padding-right: 28px;
        padding-left: 28px;
    }

    .brand {
        margin-bottom: 34px;
    }

    .auth-footer {
        gap: 20px;
    }

}
