/* Login + signup forms (FrontendAuth theme override) */

.ce-auth {
    display: flex;
    justify-content: center;
}

.ce-auth__panel {
    width: 100%;
    max-width: 26rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--ds-accent) 28%, var(--ds-line));
    background:
        radial-gradient(ellipse 90% 70% at 100% 0%, rgba(26, 173, 255, 0.1), transparent 55%),
        var(--ds-bg-raised);
}

.ce-auth__title {
    margin: 0 0 0.75rem;
    text-align: center;
}

.ce-auth__intro,
.ce-auth__message {
    margin: 0 0 1.5rem;
    color: var(--ds-ink-soft);
    text-align: center;
    font-size: 0.98rem;
}

.ce-auth__message strong {
    color: var(--ds-ink);
    font-weight: 600;
}

.ce-auth__form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ce-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ce-auth__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ds-ink-soft);
}

.ce-auth__input {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.35rem;
    border: 1px solid var(--ds-line);
    background: color-mix(in srgb, var(--ds-bg) 65%, transparent);
    color: var(--ds-ink);
    font-family: var(--ds-font);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ce-auth__input::placeholder {
    color: color-mix(in srgb, var(--ds-ink-soft) 55%, transparent);
}

.ce-auth__input:hover {
    border-color: color-mix(in srgb, var(--ds-accent) 35%, var(--ds-line));
}

.ce-auth__input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--ds-accent) 65%, var(--ds-line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-accent) 22%, transparent);
}

.ce-auth__error {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.35rem;
    border: 1px solid color-mix(in srgb, #e74c3c 45%, var(--ds-line));
    background: color-mix(in srgb, #e74c3c 12%, var(--ds-bg-raised));
    color: #ffb4a8;
    font-size: 0.9rem;
}

.ce-auth__error.is-hidden {
    display: none;
}

.ce-auth__submit,
.ce-auth__oauth {
    width: 100%;
}

.ce-auth__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.35rem 0;
    color: var(--ds-ink-soft);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ce-auth__divider::before,
.ce-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ds-line);
}

.ce-auth__actions {
    margin: 0;
}
