
.login-page {
    background: radial-gradient(circle at 0 20%, var(--border-color) 0%, var(--bg-page) 100%);
    padding: 20px;
}

.login-page main {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login-page section {
    border: 1px solid #ffffff34;
    box-shadow: 0 14px 40px var(--shadow);
    padding: 38px 48px;
    height: fit-content;
    width: 100%;
    max-width: 630px;
    transition: all 0.3s ease;
    position: absolute;
}

.login-page section.is-hidden {
    opacity: 0;
    transform: translateY(20px) scale(.96);
    pointer-events: none;
}

.login-page .login-brand {
    color: var(--active_color);
    font-weight: 600;
    margin-bottom: 10px;
}

.login-page img {
    width: 100%;
    object-fit: contain;
    margin-bottom: 50px;
}

.login-page h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.login-page .login-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.login-page .verify-icon {
    font-size: 56px;
    margin-bottom: 8px;
    line-height: 1;
}

.login-page .verify-icon--success { color: #22c55e; }
.login-page .verify-icon--error   { color: #ef4444; }

.login-page .login-help {
    margin-top: 28px;
    text-align: center;
    color: var(--color-text-secondary);
}

.login-page hr {
    border: none;
    border-top: 1px solid #ffffff34;
    margin: 24px 0;
}

.login-page .login-back {
    margin-top: 14px;
    width: 100%;
}

.login-page .description {
    font-size: 13px;
    text-align: center;
    color: var(--color-text-secondary);
    margin-top: 24px;
}

.login-page #register-section form {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-page #register-section form .email,
.login-page #register-section form .alert,
.login-page #register-section form .login-help,
.login-page #register-section form button {
    grid-column: 1 / -1;
}

.login-page #register-section form .terms {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: end;
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    cursor: pointer;
    gap: 0;
}

.login-page #register-section form .terms input {
    margin-right: 12px;
}

.login-page #register-section label:has([required]) > .label-text::after,
.login-page #register-section .terms::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
    font-weight: 600;
}

.login-page .turnstile-widget {
    width: fit-content;
    margin: auto;
    grid-column: 1 / -1;
}