/* ─────────────────────────────────────────────────────────────────────────
 * data-room.css — SCS Data Room theming (layered on top of executive-console.css)
 *   1. Light/white theme token overrides for the inner Data Room (Browse/Admin)
 *   2. Self-contained styling for the login / activation pages (admin-center-*)
 * Brand: SCS red #DA2329, graphite #5A5B5C
 * ───────────────────────────────────────────────────────────────────────── */

/* ── 1. Inner Data Room: flip the dark exec console to a white SCS theme ── */
body.data-room {
    --exc-bg-0: #ffffff;
    --exc-bg-1: #ffffff;
    --exc-bg-2: #f7f8fa;
    --exc-bg-3: #eef1f5;
    --exc-bg-hover:  rgba(218, 35, 41, 0.06);
    --exc-bg-active: rgba(218, 35, 41, 0.12);
    --exc-border:        rgba(20, 30, 50, 0.10);
    --exc-border-strong: rgba(20, 30, 50, 0.18);
    --exc-text-1: #1f2430;
    --exc-text-2: rgba(31, 36, 48, 0.72);
    --exc-text-3: rgba(31, 36, 48, 0.50);
    --exc-text-dim: rgba(31, 36, 48, 0.34);
    --exc-brand:      #DA2329;
    --exc-brand-2:    #ef4b50;
    --exc-brand-deep: #7d1418;
    --exc-e-1: 0 1px 2px rgba(20, 30, 50, 0.08);
    --exc-e-2: 0 4px 12px rgba(20, 30, 50, 0.10);
    --exc-e-3: 0 12px 32px rgba(20, 30, 50, 0.14);
    background: var(--exc-bg-0);
    color: var(--exc-text-1);
}
/* Top bar reads as a clean white header with a hairline rule + SCS logo */
body.data-room .dr-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--exc-border);
    box-shadow: var(--exc-e-1);
}
body.data-room .dr-brand-logo { height: 34px; width: auto; }
body.data-room .dr-brand-sub  { color: var(--exc-brand); font-style: normal; font-weight: 600; letter-spacing: .02em; }
body.data-room .dr-footer     { color: var(--exc-text-3); border-top: 1px solid var(--exc-border); }

/* ── 2. Login / activation pages ───────────────────────────────────────── */
body.data-room-auth { margin: 0; background: #0a0f16; }

.admin-center-section {
    position: fixed; inset: 0; width: 100vw; height: 100vh;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.admin-center-bg-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.admin-center-bg-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(10,15,22,0.55) 0%, rgba(10,15,22,0.78) 60%, rgba(10,15,22,0.92) 100%),
        linear-gradient(0deg, rgba(218,35,41,0.10), rgba(10,15,22,0.10));
}
.admin-center-shell {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    width: 100%; max-width: 430px; padding: 24px;
}
.admin-center-card {
    width: 100%; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    padding: 36px 34px 30px;
    backdrop-filter: blur(8px);
}
.admin-center-brand { text-align: center; margin-bottom: 22px; }
.admin-center-mark  { height: 54px; width: auto; margin-bottom: 14px; }
.admin-center-title { font: 700 1.5rem/1.2 var(--exc-font); color: #1f2430; margin: 0 0 6px; }
.admin-center-sub   { font: 400 .9rem/1.45 var(--exc-font); color: #5A5B5C; margin: 0; }

.admin-center-form { display: flex; flex-direction: column; gap: 16px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field-label { font: 600 .8rem/1 var(--exc-font); color: #5A5B5C; letter-spacing: .02em; }
.admin-field input {
    font: 400 .95rem/1.2 var(--exc-font); color: #1f2430;
    padding: 12px 14px; border: 1px solid #d6dae1; border-radius: 10px;
    background: #fff; transition: border-color .12s, box-shadow .12s; outline: none;
}
.admin-field input:focus { border-color: #DA2329; box-shadow: 0 0 0 3px rgba(218,35,41,0.15); }

.admin-submit {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 6px; padding: 13px 18px; border: 0; border-radius: 10px; cursor: pointer;
    font: 600 .95rem/1 var(--exc-font); color: #fff;
    background: linear-gradient(135deg, #DA2329, #b51b20);
    box-shadow: 0 6px 18px rgba(218,35,41,0.35); transition: transform .08s, box-shadow .12s, opacity .12s;
}
.admin-submit:hover { box-shadow: 0 8px 22px rgba(218,35,41,0.45); }
.admin-submit:active { transform: translateY(1px); }
.admin-submit:disabled, .admin-submit.is-loading { opacity: .75; cursor: default; }
.admin-submit-arrow { transition: transform .12s; }
.admin-submit:hover .admin-submit-arrow { transform: translateX(3px); }
.admin-submit-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; animation: dr-spin .7s linear infinite; }
.admin-submit.is-loading .admin-submit-spinner { display: inline-block; }
.admin-submit.is-loading .admin-submit-arrow, .admin-submit.is-loading .admin-submit-label { opacity: .6; }
@keyframes dr-spin { to { transform: rotate(360deg); } }

.admin-error {
    font: 500 .85rem/1.35 var(--exc-font); color: #b51b20;
    background: rgba(218,35,41,0.08); border: 1px solid rgba(218,35,41,0.25);
    border-radius: 8px; padding: 10px 12px;
}
.admin-shake { animation: dr-shake .4s; }
@keyframes dr-shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

.exc-console a.admin-center-back, .admin-center-back { color: #ffffff !important; font: 500 .85rem/1 var(--exc-font); text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.exc-console a.admin-center-back:hover, .admin-center-back:hover { color: #ffffff !important; text-decoration: underline; }

/* Success splash (post-login) */
.admin-success-panel, .contact-success-panel { text-align: center; color: #fff; }
.admin-success-panel h3 { font: 700 1.4rem/1.2 var(--exc-font); margin: 16px 0 6px; }
.admin-success-panel p  { font: 400 .9rem/1.4 var(--exc-font); color: rgba(255,255,255,0.85); margin: 0; }
.success-radar { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.radar-ring { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border: 2px solid rgba(218,35,41,0.45); border-radius: 50%; animation: dr-radar 2s ease-out infinite; }
.radar-ring:nth-child(2) { animation-delay: .6s; } .radar-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes dr-radar { 0%{transform:scale(.4);opacity:.9} 100%{transform:scale(1);opacity:0} }
.success-logo { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; }
.success-drone, .radar-sweep { display: none; }
.success-check { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; }

@media (max-width: 480px) { .admin-center-card { padding: 28px 22px; } }
