.melal-auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34rem),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    color: #0f172a;
}

.melal-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.melal-auth-card {
    width: min(28rem, 100%);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.12);
    padding: 2rem;
    backdrop-filter: blur(1rem);
}

.melal-auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.melal-auth-brand small {
    display: block;
    color: #64748b;
}

.melal-auth-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
}

.melal-auth-header p {
    margin: 0 0 1.5rem;
    color: #64748b;
    line-height: 1.9;
}


.melal-auth-alert {
    border-radius: 0.875rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.melal-auth-alert-success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

.melal-auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.melal-auth-runtime-switch {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.875rem;
    padding: 0.65rem;
    margin-bottom: 1rem;
    background: #f8fafc;
}

.melal-auth-runtime-switch label {
    color: #475569;
    font-weight: 800;
    white-space: nowrap;
}

.melal-auth-runtime-switch select {
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.7rem;
    padding: 0.5rem 0.65rem;
    font: inherit;
    background: #fff;
}

.melal-auth-runtime-switch button {
    border: 0;
    border-radius: 0.7rem;
    background: #334155;
    color: #fff;
    padding: 0.55rem 0.75rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.melal-auth-runtime-switch button:hover {
    background: #1e293b;
}

@media (max-width: 32rem) {
    .melal-auth-runtime-switch {
        grid-template-columns: 1fr;
    }
}

.melal-auth-form {
    display: grid;
    gap: 1rem;
}

.melal-form-field {
    display: grid;
    gap: 0.4rem;
}

.melal-form-field label {
    font-weight: 700;
    color: #334155;
}

.melal-form-field input,
.melal-form-field select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.875rem;
    padding: 0.75rem 0.9rem;
    font: inherit;
    outline: none;
    background: #fff;
}

.melal-form-field input:focus,
.melal-form-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.melal-form-field span,
.melal-validation-summary {
    color: #b91c1c;
    font-size: 0.875rem;
}

.melal-primary-action {
    border: 0;
    border-radius: 0.875rem;
    background: #2563eb;
    color: #fff;
    padding: 0.8rem 1rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.melal-primary-action:hover {
    background: #1d4ed8;
}
