/* PanelConfig authentication pages — official website branding */

:root {
    --pc-bg: #05070c;
    --pc-bg-soft: #0a0f1a;
    --pc-bg-raised: #0d1322;
    --pc-line: rgba(148, 184, 255, 0.10);
    --pc-line-strong: rgba(148, 184, 255, 0.18);
    --pc-text: #e8eefb;
    --pc-text-soft: #9aa8c7;
    --pc-text-faint: #6b7894;
    --pc-accent: #2dd4ff;
    --pc-accent-2: #3b82f6;
    --pc-accent-3: #34d399;
    --pc-accent-soft: rgba(45, 212, 255, 0.12);
    --pc-success: #34d399;
    --pc-warning: #fbbf24;
    --pc-danger: #f87171;
    --pc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pc-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --pc-radius: 14px;
}

* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }

body.pc-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--pc-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pc-text-soft);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(45, 212, 255, 0.10), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(59, 130, 246, 0.10), transparent 60%),
        var(--pc-bg);
}

a { color: var(--pc-accent); text-decoration: none; }
a:hover { color: #7ce5ff; }

h1, h2, h3 {
    margin: 0 0 0.5em;
    color: var(--pc-text);
    line-height: 1.2;
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
}

p { margin: 0 0 1em; }

/* ---------- Two-panel shell ---------- */

.pc-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 100vh;
}

/* Left: brand / product panel (desktop) */

.pc-auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 44px 56px;
    border-right: 1px solid var(--pc-line);
    background:
        radial-gradient(600px 300px at 20% 0%, rgba(45, 212, 255, 0.07), transparent 65%),
        var(--pc-bg-soft);
    min-width: 0;
}

.pc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pc-text);
    font-weight: 700;
    font-size: 1.05rem;
}

.pc-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #04121c;
    background: linear-gradient(135deg, var(--pc-accent), var(--pc-accent-2));
    box-shadow: 0 6px 18px rgba(45, 212, 255, 0.35);
}

.pc-brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }

.pc-auth-side-copy h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    max-width: 480px;
}

.pc-auth-side-copy p { max-width: 440px; font-size: 0.97rem; }

.pc-auth-checks {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.92rem;
}
.pc-auth-checks li::before {
    content: '✓';
    color: var(--pc-success);
    font-weight: 700;
    margin-right: 9px;
}

/* Terminal mock on the brand panel */

.pc-auth-terminal {
    border-radius: var(--pc-radius);
    border: 1px solid var(--pc-line-strong);
    background: #070b14;
    font-family: var(--pc-mono);
    font-size: 0.8rem;
    overflow: hidden;
    max-width: 520px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pc-auth-terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--pc-line);
}
.pc-auth-terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3550; }
.pc-auth-terminal-bar i:nth-child(1) { background: #f87171; }
.pc-auth-terminal-bar i:nth-child(2) { background: #fbbf24; }
.pc-auth-terminal-bar i:nth-child(3) { background: #34d399; }
.pc-auth-terminal-bar span {
    margin-left: 7px;
    color: var(--pc-text-faint);
    font-size: 0.72rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-auth-terminal-body { padding: 15px 17px; line-height: 1.9; color: #aebad4; overflow-x: auto; }
.pc-auth-terminal-body .cmd { color: #e8eefb; white-space: nowrap; }
.pc-auth-terminal-body .cmd::before { content: '$ '; color: var(--pc-accent-3); }
.pc-auth-terminal-body .ok { color: var(--pc-success); }
.pc-auth-terminal-body .dim { color: var(--pc-text-faint); }

.pc-auth-side-foot { color: var(--pc-text-faint); font-size: 0.82rem; }
.pc-auth-side-foot a { color: var(--pc-text-soft); }
.pc-auth-side-foot a:hover { color: var(--pc-text); }

/* Right: the auth card */

.pc-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 28px;
    min-width: 0;
}

.pc-auth-card {
    width: min(440px, 100%);
    border-radius: 18px;
    border: 1px solid var(--pc-line-strong);
    background: var(--pc-bg-raised);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.pc-auth-head {
    padding: 28px 30px 0;
}

.pc-auth-head h1 { font-size: 1.45rem; margin-bottom: 4px; }
.pc-auth-head p { font-size: 0.92rem; margin-bottom: 0; }

.pc-auth-brand { display: none; }

.pc-auth-body-inner { padding: 22px 30px 30px; }

/* ---------- Forms ---------- */

.pc-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }

.pc-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pc-text);
}

.pc-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--pc-line-strong);
    background: #070b14;
    color: var(--pc-text);
    font-family: var(--pc-font);
    font-size: 0.95rem;
}

.pc-form input:focus {
    outline: none;
    border-color: var(--pc-accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 255, 0.16);
}

.pc-form input::placeholder { color: var(--pc-text-faint); }

.pc-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: var(--pc-font);
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.pc-btn-primary {
    flex: 1 1 auto;
    color: #04121c;
    background: linear-gradient(135deg, var(--pc-accent), var(--pc-accent-2));
    box-shadow: 0 10px 26px rgba(45, 212, 255, 0.28);
}
.pc-btn-primary:hover { color: #04121c; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(45, 212, 255, 0.36); }

.pc-btn-light,
.pc-btn-secondary {
    color: var(--pc-text);
    background: var(--pc-bg-soft);
    border-color: var(--pc-line-strong);
}
.pc-btn-light:hover,
.pc-btn-secondary:hover { color: var(--pc-text); border-color: var(--pc-accent); }

/* ---------- Alerts & flash messages ---------- */

.pc-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    border: 1px solid;
    overflow-wrap: break-word;
}
.pc-alert-success { background: rgba(52, 211, 153, 0.10); border-color: rgba(52, 211, 153, 0.35); color: var(--pc-success); }
.pc-alert-error { background: rgba(248, 113, 113, 0.10); border-color: rgba(248, 113, 113, 0.35); color: var(--pc-danger); }
.pc-alert-info { background: var(--pc-accent-soft); border-color: rgba(45, 212, 255, 0.35); color: var(--pc-accent); }
.pc-alert-warning { background: rgba(251, 191, 36, 0.10); border-color: rgba(251, 191, 36, 0.35); color: var(--pc-warning); }

/* ---------- Footer links inside the card ---------- */

.pc-auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--pc-line);
    font-size: 0.86rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .pc-auth-shell { grid-template-columns: 1fr; }

    .pc-auth-side {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        padding: 16px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--pc-line);
    }

    .pc-auth-side-copy,
    .pc-auth-terminal,
    .pc-auth-side-foot { display: none; }

    .pc-auth-main { padding: 28px 16px 44px; align-items: flex-start; }
}

@media (max-width: 420px) {
    .pc-auth-head { padding: 24px 20px 0; }
    .pc-auth-body-inner { padding: 18px 20px 24px; }
    .pc-auth-actions .pc-btn { flex: 1 1 auto; }
}
