/*
Authentication stylesheet architecture.

Local CSS for login pages so browser, Excel, and Revit hosts do not depend on
Tailwind runtime behavior for the focused auth form.
*/

/* ======== AUTH PAGE SHELL ======== */
/* Override host-specific body colors and center the form without the app bar. */

body,
body.klassifai-host-excel,
body.klassifai-host-revit {
    background: #f6f7f9;
}

.auth-main {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 14px;
    width: 100%;
}

.auth-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    max-width: 448px;
    padding: 30px;
    width: 100%;
}

.auth-card-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-title {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.auth-title span {
    color: #4f46e5;
}

/* ======== AUTH FORM ======== */
/* Plain form controls mirror the general login look across embedded hosts. */

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.auth-error p {
    margin: 0;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label {
    color: #374151;
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-field input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    display: block;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    width: 100%;
}

.auth-field input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
    outline: 0;
}

.auth-field-error {
    color: #dc2626;
    font-size: 12px;
    line-height: 1.35;
    margin: 6px 0 0;
}

.auth-submit {
    background: #4f46e5;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    padding: 11px 16px;
    width: 100%;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background: #4338ca;
    outline: 0;
}

.auth-secondary {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
    margin: 22px 0 0;
    text-align: center;
}

.auth-secondary a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.auth-secondary a:hover {
    color: #4338ca;
}
