@font-face {
    font-family: "Pranl San Francisco";
    src: local("SF Pro Text"), local("SF Pro Display"), local("San Francisco");
    font-display: swap;
}

.auth-form-page {
    --auth-border: #cbd5e1;
    --auth-border-strong: #94a3b8;
    --auth-focus: var(--color-brand, #0f5eea);
    --auth-muted: #64748b;
    color: #111827;
}

.auth-file-input {
    display: block;
    width: 100%;
    min-height: 8.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.375rem;
    background: #fff;
    padding: 3.25rem 1rem 1rem;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
}

.auth-file-input::file-selector-button {
    margin-right: 0.75rem;
    border: 1px solid #94a3b8;
    border-radius: 0.25rem;
    background: #fff;
    padding: 0.45rem 0.7rem;
    color: #1f2937;
    font-weight: 700;
    cursor: pointer;
}

.auth-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25rem;
}

.auth-required {
    margin-left: 0.15rem;
    color: #dc2626;
}

.auth-optional {
    margin-left: 0.35rem;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 500;
}

.auth-input,
.auth-form-page input[type="text"],
.auth-form-page input[type="email"],
.auth-form-page input[type="password"],
.auth-form-page select,
.auth-form-page textarea {
    width: 100%;
    min-height: 3rem;
    border: 2px solid var(--auth-border);
    border-radius: 0.375rem;
    background: #fff;
    padding: 0.7rem 0.875rem;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form-header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.auth-form-header h1,
.auth-form-header h2 {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.auth-form-header p {
    margin-top: 0.375rem;
    color: #64748b;
    font-size: 0.875rem;
}

.auth-heading-icon {
    display: flex;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
}

.auth-primary-button,
.auth-secondary-button {
    display: inline-flex;
    min-height: 2.875rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.auth-primary-button {
    width: 100%;
    border: 1px solid var(--auth-focus);
    background: var(--auth-focus);
    color: #fff;
}

.auth-primary-button:hover {
    background: var(--color-brand-dark, #0646b4);
}

.auth-secondary-button {
    min-width: 6.5rem;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #1f2937;
}

.auth-secondary-button:hover {
    border-color: #64748b;
}

.auth-button-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.auth-button-row .auth-primary-button {
    flex: 1;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #6b7280;
    font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: #e5e7eb;
    content: "";
}

.auth-switch-copy {
    margin-top: 1.25rem;
    color: #64748b;
    font-size: 0.8125rem;
    text-align: center;
}

.auth-switch-copy a {
    color: #111827;
    font-weight: 700;
}

.auth-field-error {
    margin-top: 0.375rem;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 600;
}

.auth-upload {
    display: flex;
    min-height: 8.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed #cbd5e1;
    border-radius: 0.375rem;
    background: #fff;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.auth-upload-banner {
    min-height: 7.25rem;
}

.auth-upload:hover,
.auth-upload.is-dragging {
    border-color: var(--auth-focus);
    background: #f8fafc;
}

.auth-upload [data-upload-copy] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem;
}

.auth-upload [data-upload-copy][hidden],
.auth-upload [data-upload-copy].hidden {
    display: none;
}

.auth-upload i {
    margin-bottom: 0.25rem;
    color: var(--auth-focus);
    font-size: 1rem;
}

.auth-upload strong {
    color: #1f2937;
    font-size: 0.8125rem;
}

.auth-upload small {
    color: #64748b;
    font-size: 0.6875rem;
}

.auth-step-item {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 0.75rem;
    color: #64748b;
    text-align: left;
}

.auth-step-title {
    display: block;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 700;
}

.auth-step-item small {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
}

.auth-step-marker {
    display: flex;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    border-radius: 999px;
    color: #64748b;
    font-size: 0.625rem;
    font-weight: 700;
}

.auth-step-item[aria-current="step"] .auth-step-marker,
.auth-step-item.is-complete .auth-step-marker {
    border-color: var(--auth-focus);
    color: var(--auth-focus);
}

.auth-step-item[aria-current="step"] .auth-step-title {
    color: #111827;
}

.auth-form-page textarea {
    min-height: 7rem;
    resize: vertical;
}

.auth-form-page select {
    cursor: pointer;
    padding-right: 2.5rem;
}

.auth-input::placeholder,
.auth-form-page input::placeholder,
.auth-form-page textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.auth-input:hover,
.auth-form-page input[type="text"]:hover,
.auth-form-page input[type="email"]:hover,
.auth-form-page input[type="password"]:hover,
.auth-form-page select:hover,
.auth-form-page textarea:hover {
    border-color: var(--auth-border-strong);
}

.auth-input:focus,
.auth-form-page input[type="text"]:focus,
.auth-form-page input[type="email"]:focus,
.auth-form-page input[type="password"]:focus,
.auth-form-page select:focus,
.auth-form-page textarea:focus {
    border-color: var(--auth-focus);
    box-shadow: 0 0 0 3px rgb(15 94 234 / 12%);
}

.auth-form-page [aria-invalid="true"] {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgb(220 38 38 / 10%);
}

[data-step-item][data-state="current"] .auth-step-marker,
[data-step-item][data-state="complete"] .auth-step-marker {
    border-color: var(--auth-focus);
    color: var(--auth-focus);
}

[data-step-item][data-state="current"] .auth-step-title {
    color: #111827;
}

[data-step-item][data-state="complete"] .auth-step-title {
    color: #334155;
}

@media (prefers-reduced-motion: reduce) {
    .auth-form-page *,
    .auth-form-page *::before,
    .auth-form-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    .dark .auth-form-page {
        --auth-border: #475569;
        --auth-border-strong: #64748b;
        color: #f8fafc;
    }

    .dark .auth-label,
    .dark [data-step-item][data-state="current"] .auth-step-title {
        color: #f8fafc;
    }

    .dark .auth-form-page input[type="text"],
    .dark .auth-form-page input[type="email"],
    .dark .auth-form-page input[type="password"],
    .dark .auth-form-page select,
    .dark .auth-form-page textarea,
    .dark .auth-upload {
        background: #111827;
        color: #f8fafc;
    }
}
