

html, body { height: 100%; }

body {
    display: flex;
    flex-direction: column;
    background: var(--body-bg);
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand__logo-img {
    max-height: 40px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-brand__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--body-text);
    letter-spacing: -0.01em;
}

.auth-brand__tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.5;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px var(--shadow-color);
}

.auth-card__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--body-text);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: color-mix(in srgb, #ef4444 12%, var(--bg-card));
    border: 1px solid color-mix(in srgb, #ef4444 25%, transparent);
    color: #fca5a5;
}

.auth-alert i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--body-text);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.auth-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field__icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 2;
    pointer-events: none;
    transition: color 200ms ease;
}

.auth-field__input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 2.6rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--body-text);
    font-size: 0.9rem;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    transition: all 200ms ease;
}

.auth-field__input::placeholder {
    color: color-mix(in srgb, var(--body-text) 55%, transparent);
}

.auth-field__input:focus {
    outline: none;
    border-color: var(--body-hover-text);
    background: color-mix(in srgb, var(--body-text) 4%, var(--input-bg));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--body-hover-text) 20%, transparent);
}

.auth-field__input:focus ~ .auth-field__icon,
.auth-field__wrap:focus-within .auth-field__icon {
    color: var(--body-hover-text);
}

.auth-field__toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: color 200ms ease;
    z-index: 2;
}

.auth-field__toggle:hover {
    color: var(--body-hover-text);
}

.auth-field__status {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.4rem;
    padding: 0 2px;
}

.auth-field__status--error {
    color: #fca5a5;
}

.auth-field__status--success {
    color: #6ee7b7;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem;
    background: var(--body-hover-text);
    color: var(--accent-text-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    cursor: pointer;
    transition: all 200ms ease;
    letter-spacing: 0.01em;
    text-align: center;
}

.btn-auth:hover:not(:disabled) {
    background: color-mix(in srgb, var(--body-hover-text) 82%, #000);
}

.btn-auth:active:not(:disabled) {
    transform: scale(0.985);
}

.btn-auth:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-auth--fake {
    opacity: 0.55;
    cursor: not-allowed;
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    color: var(--text-muted);
    font-size: 0.775rem;
    font-weight: 400;
    white-space: nowrap;
}

.auth-social {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--body-text);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    cursor: pointer;
    transition: all 200ms ease;
    text-decoration: none;
}

.auth-social__btn i {
    font-size: 1.05rem;
}

.auth-social__btn:hover {
    background: color-mix(in srgb, var(--body-text) 4%, transparent);
    border-color: var(--input-border);
}

.auth-switch {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-switch__link {
    color: var(--body-hover-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 200ms ease;
}

.auth-switch__link:hover {
    color: color-mix(in srgb, var(--body-hover-text) 80%, #000);
    text-decoration: underline;
}

.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.775rem;
}

.auth-trust i {
    color: color-mix(in srgb, #22c55e 75%, var(--body-text));
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .auth-page {
        padding: 1.5rem 0.75rem;
    }
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }
    .auth-card__title {
        font-size: 1.35rem;
    }
    .auth-field__input {
        padding: 0.7rem 2.75rem 0.7rem 2.5rem;
        font-size: 0.85rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .auth-field__input,
    .auth-social__btn,
    .btn-auth,
    .auth-field__toggle {
        transition: none;
    }
}
