/* Acculex auth & tenant pages */
.public-shell { min-height: 100vh; display: flex; flex-direction: column; }
.public-header { padding: 1rem 1.5rem; background: #1f2937; color: #fff; }
.public-header .brand { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.2rem; }
.public-main { flex: 1; display: flex; align-items: center; justify-content: center; background: #f3f4f6; }

.auth-card { width: 420px; max-width: 92vw; background: #fff; padding: 2rem; border-radius: 12px;
             box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.auth-card h1 { margin: 0 0 1.25rem; font-size: 1.4rem; }
.auth-card label { display: block; margin: .75rem 0 .25rem; font-size: .85rem; color: #4b5563; }
.auth-card input, .auth-card select {
    width: 100%; padding: .55rem .75rem; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 1rem; box-sizing: border-box;
}

.btn-primary { display: inline-block; margin-top: 1rem; padding: .6rem 1rem;
               background: #2563eb; color: #fff; border: 0; border-radius: 8px;
               cursor: pointer; text-decoration: none; }
.btn-primary[disabled] { opacity: .6; cursor: default; }
.btn-link { display: inline-block; margin-top: .5rem; color: #2563eb; text-decoration: none; background: none; border: 0; cursor: pointer; }

.btn-oauth { display: block; padding: .6rem 1rem; margin: .5rem 0; border-radius: 8px;
             text-decoration: none; color: #fff; text-align: center; }
.btn-oauth.google    { background: #db4437; }
.btn-oauth.microsoft { background: #2f2f2f; }
.btn-oauth.meta      { background: #1877f2; }

.auth-divider { text-align: center; margin: 1rem 0; color: #9ca3af; position: relative; }
.auth-divider::before, .auth-divider::after { content: ""; position: absolute; top: 50%;
    width: 40%; height: 1px; background: #e5e7eb; }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

.tabs { display: flex; gap: .5rem; margin-bottom: .75rem; }
.tabs button { flex: 1; padding: .5rem; border: 1px solid #d1d5db; background: #fff; border-radius: 8px; cursor: pointer; }
.tabs button.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.error { background: #fee2e2; color: #991b1b; padding: .5rem .75rem; border-radius: 8px; margin-top: .75rem; }
.info  { background: #dbeafe; color: #1e3a8a; padding: .5rem .75rem; border-radius: 8px; margin-top: .75rem; }

.otp-input { letter-spacing: .5rem; text-align: center; font-size: 1.5rem; }

.tenant-list, .invite-list { list-style: none; padding: 0; }
.tenant-list li, .invite-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1rem; background: #fff; border-radius: 8px; margin: .5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.tenant-card { width: 560px; max-width: 92vw; }
.tenant-card .tenant-list li, .tenant-card .invite-list li { background: #f9fafb; }
.tenant-card h2 { margin: 1.25rem 0 .5rem; font-size: 1rem; color: #374151; }
.tenant-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.25rem; }
.public-main { padding: 2rem 1rem; align-items: flex-start; }

.user-grid table { width: 100%; border-collapse: collapse; background: #fff; }
.user-grid th, .user-grid td { padding: .5rem .75rem; border-bottom: 1px solid #e5e7eb; text-align: left; }
.invite-box { margin-top: 1.5rem; padding: 1rem; background: #f9fafb; border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: 200px 1fr; gap: .5rem 1rem; max-width: 600px; }
.form-grid label { align-self: center; }
