/*
Theme Name: Qualiconta Shell
Theme URI: https://qualiconta.com
Description: Tema filho corporativo do GeneratePress para o portal público e a identidade visual da Plataforma Qualiconta Gestão.
Author: Qualiconta
Author URI: https://qualiconta.com
Template: generatepress
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: qualiconta-shell
*/

:root {
    --qc-white: #ffffff;
    --qc-navy: #2d3e50;
    --qc-blue: #287fb4;
    --qc-background: #f4f7fa;
    --qc-border: #dce4ea;
    --qc-text: #24313e;
    --qc-muted: #6b7785;
    --qc-success: #23885a;
    --qc-shadow: 0 22px 55px rgba(45, 62, 80, 0.14);
}

html { color-scheme: light; }
body { color: var(--qc-text); background: var(--qc-background); }

.qcs-shell-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(40, 127, 180, .16), transparent 30%),
        radial-gradient(circle at 88% 90%, rgba(45, 62, 80, .12), transparent 34%),
        linear-gradient(135deg, #edf4f8 0%, #ffffff 52%, #e7f1f7 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.qcs-skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 1000;
    padding: 12px 18px;
    color: #fff;
    background: var(--qc-navy);
    border-radius: 10px;
}
.qcs-skip-link:focus { top: 20px; }

.qcs-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 1.18fr) minmax(360px, .82fr);
}

.qcs-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(32px, 6vw, 88px);
    color: #fff;
    background: linear-gradient(145deg, #223246 0%, var(--qc-navy) 58%, #345b77 100%);
}

.qcs-brand-panel::before,
.qcs-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}
.qcs-brand-panel::before {
    width: 520px;
    height: 520px;
    right: -260px;
    top: -180px;
    background: rgba(40, 127, 180, .22);
}
.qcs-brand-panel::after {
    width: 370px;
    height: 370px;
    left: -190px;
    bottom: -170px;
    border: 70px solid rgba(255,255,255,.05);
}

.qcs-brand-content,
.qcs-brand-footer { position: relative; z-index: 1; }
.qcs-logo-wrap {
    width: min(560px, 100%);
    padding: 22px 28px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 65px rgba(8, 20, 32, .24);
    backdrop-filter: blur(18px);
}
.qcs-logo { display: block; width: 100%; height: auto; }
.qcs-eyebrow {
    margin: 38px 0 10px;
    color: #9cd2f1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.qcs-title {
    max-width: 740px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -.035em;
}
.qcs-intro {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.62;
}
.qcs-brand-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 52px;
    color: rgba(255,255,255,.68);
    font-size: 13px;
}
.qcs-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #63d69a;
    box-shadow: 0 0 0 5px rgba(99,214,154,.14);
}

.qcs-access-panel {
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 72px);
}
.qcs-access-card {
    width: min(470px, 100%);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(220, 228, 234, .95);
    border-radius: 30px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--qc-shadow);
    backdrop-filter: blur(20px);
}
.qcs-card-kicker {
    margin: 0 0 8px;
    color: var(--qc-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.qcs-card-title {
    margin: 0;
    color: var(--qc-navy);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -.025em;
}
.qcs-card-copy { margin: 14px 0 28px; color: var(--qc-muted); line-height: 1.62; }

.qcs-access-card label { color: var(--qc-text); font-weight: 700; }
.qcs-access-card .login-username,
.qcs-access-card .login-password { margin: 0 0 18px; }
.qcs-access-card input[type="text"],
.qcs-access-card input[type="password"] {
    width: 100%;
    min-height: 50px;
    margin-top: 7px;
    padding: 12px 15px;
    border: 1px solid var(--qc-border);
    border-radius: 13px;
    color: var(--qc-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.qcs-access-card input:focus {
    border-color: var(--qc-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(40,127,180,.14);
}
.qcs-access-card .login-remember { margin: 4px 0 22px; color: var(--qc-muted); }
.qcs-access-card .login-submit { margin: 0; }
.qcs-access-card .button,
.qcs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--qc-blue), #246f9e);
    box-shadow: 0 12px 24px rgba(40,127,180,.22);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.qcs-access-card .button:hover,
.qcs-button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--qc-navy), #223246);
    box-shadow: 0 15px 30px rgba(45,62,80,.25);
    transform: translateY(-1px);
}
.qcs-access-card .button:focus-visible,
.qcs-button:focus-visible {
    outline: 3px solid rgba(40,127,180,.32);
    outline-offset: 3px;
}
.qcs-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    font-size: 13px;
}
.qcs-links a { color: var(--qc-blue); text-decoration: none; }
.qcs-links a:hover { text-decoration: underline; }
.qcs-privacy {
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--qc-border);
    color: var(--qc-muted);
    font-size: 12px;
    line-height: 1.55;
}
.qcs-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
    padding: 14px;
    border-radius: 16px;
    background: #f7fafc;
}
.qcs-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    color: #fff;
    background: var(--qc-navy);
    font-weight: 800;
}
.qcs-user strong { display: block; color: var(--qc-text); }
.qcs-user span { color: var(--qc-muted); font-size: 13px; }
.qcs-warning {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-left: 4px solid #c68723;
    border-radius: 10px;
    color: #6c501d;
    background: #fff8e8;
    font-size: 13px;
    line-height: 1.5;
}

.qcs-clock { font-variant-numeric: tabular-nums; }

@media (max-width: 920px) {
    .qcs-shell { grid-template-columns: 1fr; }
    .qcs-brand-panel { min-height: 46vh; padding-bottom: 38px; }
    .qcs-brand-footer { margin-top: 34px; }
    .qcs-access-panel { padding-top: 34px; padding-bottom: 50px; }
}

@media (max-width: 520px) {
    .qcs-brand-panel { padding: 28px 22px 34px; }
    .qcs-logo-wrap { padding: 15px 18px; border-radius: 20px; }
    .qcs-access-panel { padding: 24px 16px 40px; }
    .qcs-access-card { padding: 26px 20px; border-radius: 24px; }
    .qcs-links { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
    .qcs-shell-page { background: #fff; }
    .qcs-shell { display: block; }
    .qcs-brand-panel { min-height: auto; color: #000; background: #fff; }
    .qcs-access-panel { display: none; }
}
