/* =========================================================
   Auth pages — login, forgot, reset, installer
   ========================================================= */

.auth-body {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card {
    width: 100%;
    background: white;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .06),
        0 6px 18px rgba(15, 23, 42, .06),
        0 24px 60px rgba(15, 23, 42, .08);
    border: 1px solid #eef2f6;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.brand-row h1 { margin: 0; font-size: 22px; }
.brand-row .muted { color: #6b7280; margin: 2px 0 0; font-size: 13px; }

.auth-card .lbl {
    display: block;
    font-weight: 600;
    color: #374151;
    margin: 14px 0 6px;
    font-size: 13px;
}

.auth-card input[type=text],
.auth-card input[type=email],
.auth-card input[type=password] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    transition: 160ms ease;
    background: white;
}
.auth-card input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.role-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 4px;
}
.role-tab {
    position: relative;
    cursor: pointer;
}
.role-tab input { position: absolute; opacity: 0; }
.role-tab span {
    display: block;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    transition: 160ms ease;
}
.role-tab input:checked + span {
    background: white;
    color: #111827;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.auth-card .btn { margin-top: 22px; }

.auth-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}
.auth-foot .dot { margin: 0 6px; color: #d1d5db; }

.auth-foot-muted {
    margin-top: 22px;
    color: #9ca3af;
    font-size: 12px;
}

/* -------- installer -------- */
.install-wrap {
    width: 100%;
    max-width: 600px;
    padding: 24px;
}
.install-card {
    background: white;
    border-radius: 14px;
    padding: 32px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .06),
        0 6px 18px rgba(15, 23, 42, .06);
    border: 1px solid #eef2f6;
}
.install-creds {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.install-creds th, .install-creds td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    font-size: 13px;
}
.install-creds th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
