/* Nexvo Cloud — giriş ekranı ve eşitleme göstergesi */
html.nq-booting .app-shell { visibility: hidden; }

.nqa { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; color: var(--ink); overflow: auto; }
.nqa-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px; background: #0f172a; color: #e2e8f0; overflow: hidden; }
.nqa-brand::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%); }
.nqa-logo { display: flex; align-items: center; gap: 12px; }
.nqa-logo b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: #2563eb; color: #fff; font-weight: 800; }
.nqa-logo strong { display: block; color: #fff; font-size: 16px; }
.nqa-logo span { display: block; color: #94a3b8; font-size: 11px; letter-spacing: 0.14em; }
.nqa-brand h1 { margin: 0 0 12px; max-width: 460px; color: #fff; font-size: 30px; line-height: 1.2; }
.nqa-brand p { margin: 0; max-width: 440px; color: #94a3b8; font-size: 15px; line-height: 1.6; }
.nqa-points { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.nqa-points li { display: flex; gap: 10px; align-items: flex-start; color: #cbd5e1; }
.nqa-points li::before { content: "✓"; flex: 0 0 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(37, 99, 235, 0.25); color: #93c5fd; font-size: 11px; font-weight: 800; }
.nqa-foot { position: relative; z-index: 1; color: #64748b; font-size: 12px; }

.nqa-main { display: grid; place-items: center; padding: 32px 16px; }
.nqa-card { width: min(400px, 100%); }
.nqa-card h2 { margin: 0 0 6px; font-size: 24px; }
.nqa-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.5; }
.nqa-card form { display: grid; gap: 14px; }
.nqa-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #334155; }
.nqa-card input[type=email], .nqa-card input[type=password], .nqa-card input[type=text] { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; background: #fff; color: var(--ink); }
.nqa-card input:focus { outline: 2px solid rgba(37, 99, 235, 0.35); border-color: var(--brand); }
.nqa-card .primary { width: 100%; padding: 11px 14px; font-size: 14px; }
.nqa-card .primary[disabled] { opacity: 0.6; cursor: progress; }
.nqa-link { padding: 0; border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 13px; cursor: pointer; }
.nqa-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nqa-msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.nqa-msg.err { background: #fef2f2; color: #b42318; }
.nqa-msg.ok { background: #f0fdf4; color: #237a3b; }
.nqa-check { display: flex !important; grid-template-columns: none; flex-direction: row; gap: 10px !important; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-weight: 500 !important; line-height: 1.5; }
.nqa-check input { margin-top: 3px; }
.nqa-tenants { display: grid; gap: 8px; }
.nqa-tenants button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }
.nqa-tenants button:hover { border-color: var(--brand); background: rgba(37, 99, 235, 0.04); }
.nqa-tenants b { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #0f172a; color: #fff; font-size: 13px; }
.nqa-tenants strong { display: block; }
.nqa-tenants span { color: var(--muted); font-size: 12px; }
.nqa-spin { width: 36px; height: 36px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid #e2e8f0; border-top-color: var(--brand); animation: nqa-spin 0.8s linear infinite; }
.nqa-center { text-align: center; }
@keyframes nqa-spin { to { transform: rotate(360deg); } }

.nqc-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.nqc-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.nqc-status[data-s="saved"]::before { background: #22c55e; }
.nqc-status[data-s="saving"]::before, .nqc-status[data-s="pending"]::before { background: #f59e0b; }
.nqc-status[data-s="error"] { color: var(--danger); }
.nqc-status[data-s="error"]::before { background: var(--danger); }
.nqc-status[data-s="readonly"]::before { background: #64748b; }

@media (max-width: 860px) {
  .nqa { grid-template-columns: 1fr; }
  .nqa-brand { padding: 28px 20px; gap: 18px; }
  .nqa-brand h1 { font-size: 22px; }
  .nqa-points, .nqa-foot { display: none; }
  .nqc-status span { display: none; }
}
.nqa-admin { width: 100%; margin-bottom: 14px; padding: 11px 14px; font-size: 14px; }

/* ---------- üniversite markası ---------- */
.nqa-brand.nqa-uni { background: linear-gradient(160deg, var(--nq-deep) 0%, color-mix(in srgb, var(--nq-deep) 78%, #000) 100%); }
.nqa-brand.nqa-uni::after { background: radial-gradient(circle, color-mix(in srgb, var(--nq-accent) 45%, transparent), transparent 70%); }
.nqa-brand.nqa-uni::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--nq-accent); }
.nqa-brand.nqa-uni .nqa-points li::before { background: color-mix(in srgb, var(--nq-accent) 30%, transparent); color: #fff; }
.nqa-unilogo { gap: 16px !important; }
.nqa-unimark { flex: 0 0 auto; display: grid; place-items: center; min-width: 64px; max-width: 200px; height: 64px; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.nqa-unimark img { display: block; max-width: 100%; max-height: 48px; object-fit: contain; }
.nqa-unilogo strong { font-size: 18px !important; line-height: 1.25; }
.nqa-unilogo span { margin-top: 3px; }
.nqa-tenants b.img { background: #fff; border: 1px solid var(--line); padding: 3px; }
.nqa-tenants b.img img { max-width: 100%; max-height: 100%; object-fit: contain; }

html.nq-branded .topbar { box-shadow: inset 0 3px 0 var(--nq-accent); }
html.nq-branded .avatar { background: var(--brand); }
.tenant-card.nq-uni { flex-direction: column; align-items: stretch; gap: 10px; border-top: 3px solid var(--nq-accent); }
.tenant-card.nq-uni .tenant-logo { width: 100%; height: 64px; padding: 6px; background: #fff; border: 1px solid var(--line); color: var(--brand); font-size: 20px; }
.tenant-card.nq-uni .tenant-logo img { display: block; max-width: 100%; max-height: 52px; object-fit: contain; }
.tenant-card.nq-uni strong { color: var(--brand); }
