:root {
    --gold: #F7C026;
    --gold-dark: #D4A017;
    --gold-soft: #FFF4D6;
    --ink: #1A1A1A;
}

/* Logo preto → amarelo Gold (#F7C026) em fundos escuros — padrão praiadacosta */
.logo-gold-filter {
    filter: invert(86%) sepia(21%) saturate(2251%) hue-rotate(345deg) brightness(101%) contrast(94%);
}

html { scroll-behavior: smooth; }

.auth-bg {
    background:
        radial-gradient(circle at top right, rgba(247, 192, 38, 0.18), transparent 35%),
        linear-gradient(160deg, #111 0%, #1f1f1f 45%, #2a2418 100%);
}

/* —— Login premium —— */
.auth-login-body {
    background: #0c0c0c;
    color: #1a1a1a;
    min-height: 100vh;
}

.auth-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.auth-login-page__hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #fff;
}

.auth-login-page__hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(247, 192, 38, 0.12) 0%, transparent 42%),
        linear-gradient(220deg, #161616 0%, #0a0a0a 55%, #1a1508 100%);
}

.auth-login-page__hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 30% 20%, black, transparent 75%);
}

.auth-login-page__hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.auth-login-page__hero-glow--1 {
    width: 420px;
    height: 420px;
    top: -80px;
    right: -60px;
    background: rgba(247, 192, 38, 0.22);
}
.auth-login-page__hero-glow--2 {
    width: 320px;
    height: 320px;
    bottom: 10%;
    left: -80px;
    background: rgba(247, 192, 38, 0.08);
}

.auth-login-page__hero-content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    animation: authFadeUp .7s ease both;
}

.auth-login-page__hero-logo {
    height: 3.25rem;
    width: auto;
    margin-bottom: 1.75rem;
    object-fit: contain;
}

.auth-login-page__hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(247, 192, 38, 0.95);
    margin-bottom: 1.25rem;
}
.auth-login-page__hero-tag::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: var(--gold);
}

.auth-login-page__hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.auth-login-page__hero-text {
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2.5rem;
}

.auth-login-page__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}
.auth-login-page__features li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}
.auth-login-page__feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 0.75rem;
    display: block;
    box-sizing: border-box;
    text-align: center;
    line-height: 2.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold) 0%, #ffe082 100%);
}
.auth-login-page__features strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.auth-login-page__features span {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.45;
}

.auth-login-page__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(circle at top, rgba(247, 192, 38, 0.08), transparent 40%),
        #f4f5f7;
}

.auth-login-page__panel-inner {
    width: min(100%, 28rem);
    animation: authFadeUp .7s .12s ease both;
}

.auth-login-page__mobile-brand {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b7280;
}

.auth-login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.75rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(16px);
}

.auth-login-form__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.auth-login-form__title {
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.65rem;
}

.auth-login-form__lead {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 1.75rem;
}

.auth-field { margin-bottom: 1.1rem; }

.auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.auth-field__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.auth-field__link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
}
.auth-field__link:hover { text-decoration: underline; }

.auth-field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field__icon {
    position: absolute;
    left: 1rem;
    width: 1.15rem;
    height: 1.15rem;
    color: #94a3b8;
    pointer-events: none;
}
.auth-field__icon svg { width: 100%; height: 100%; }

.auth-field__input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.95rem 1rem 0.95rem 2.85rem;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.auth-field__input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(247, 192, 38, 0.16);
    transform: translateY(-1px);
}

.auth-field__toggle {
    position: absolute;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    color: #94a3b8;
    border-radius: 0.65rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color .15s, background .15s;
}
.auth-field__toggle:hover {
    color: var(--ink);
    background: #f8fafc;
}
.auth-field__toggle svg { width: 1.1rem; height: 1.1rem; }

.auth-login-form__submit {
    width: 100%;
    margin-top: 0.35rem;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold) 0%, #ffd95a 100%);
    box-shadow: 0 14px 32px rgba(247, 192, 38, 0.28);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.auth-login-form__submit svg { width: 1.1rem; height: 1.1rem; }
.auth-login-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(247, 192, 38, 0.34);
    filter: brightness(1.02);
}
.auth-login-form__submit:active { transform: translateY(0); }

.auth-login-form__footer {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid #eef2f7;
    text-align: center;
}
.auth-login-form__footer p {
    font-size: 0.86rem;
    color: #64748b;
    margin-bottom: 0.65rem;
}
.auth-login-form__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.auth-login-form__cta:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(247, 192, 38, 0.12);
    transform: translateY(-1px);
}

.auth-login-page__copyright {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
    .auth-login-page {
        grid-template-columns: 1fr;
    }
    .auth-login-page__hero {
        display: none;
    }
    .auth-login-page__mobile-brand {
        display: flex;
        justify-content: center;
    }
    .auth-login-page__panel {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 2.5rem;
    }
}

@media (max-width: 480px) {
    .auth-login-card {
        border-radius: 1.25rem;
        padding: 1.35rem;
    }
}

.gold-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.gold-input,
.gold-select,
textarea.gold-input {
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 0.875rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.gold-input:focus,
.gold-select:focus,
textarea.gold-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(247, 192, 38, 0.18);
}

.gold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    border-radius: 0.875rem;
    padding: 0.85rem 1.25rem;
    transition: transform .15s, background .15s, box-shadow .15s;
    box-shadow: 0 8px 24px rgba(247, 192, 38, 0.25);
}

.gold-btn:hover { background: var(--gold-dark); transform: translateY(-1px); }
.gold-btn-sm { padding: 0.55rem 0.9rem; font-size: 0.82rem; border-radius: 0.75rem; }
.gold-btn-outline { background: transparent; border: 1px solid var(--gold); box-shadow: none; }
.gold-btn-outline:hover { background: var(--gold-soft); }

.gold-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.gold-stat {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #EEF2F7;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.gold-stat span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6B7280;
    margin-bottom: 0.35rem;
}

.gold-stat strong { font-size: 1.5rem; color: var(--ink); }

.gold-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.gold-table th {
    background: #F8FAFC;
    text-align: left;
    padding: 0.9rem 1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
}
.gold-table td { padding: 0.95rem 1rem; border-bottom: 1px solid #F1F5F9; }
.gold-table tr:hover td { background: #FFFBEB; }
.gold-table .row-overdue td { background: #FEF2F2; }

.gold-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #F1F5F9;
    color: #475569;
}
.gold-badge-success { background: #DCFCE7; color: #166534; }
.gold-badge-warning { background: #FEF9C3; color: #854D0E; }
.gold-badge-danger { background: #FEE2E2; color: #991B1B; }

.gold-flash {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    max-width: 420px;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
    animation: flashIn .35s ease;
}
.gold-flash-success { background: #166534; color: #fff; }
.gold-flash-error { background: #991B1B; color: #fff; }
.gold-flash-warning { background: var(--gold); color: var(--ink); }

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.gold-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.gold-modal.hidden { display: none; }
.gold-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.gold-modal-panel {
    position: relative;
    background: #fff;
    width: min(560px, 100%);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    max-height: 90vh;
    overflow: auto;
}
.gold-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    font-size: 1.75rem;
    line-height: 1;
    color: #94A3B8;
}

.sidebar-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-block;
    background: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}
.sidebar-icon-home { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12l9-9 9 9M5 10v10h14V10'/%3E%3C/svg%3E"); }
.sidebar-icon-barcode { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-width='2' d='M4 7h2v10H4zm4 0h1v10H8zm3 0h3v10h-3zm5 0h1v10h-1zm3 0h2v10h-2z'/%3E%3C/svg%3E"); }
.sidebar-icon-chart { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 19h16M7 16V8m5 8V5m5 11v-6'/%3E%3C/svg%3E"); }
.sidebar-icon-doc { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6M9 8h6m2 12H7a2 2 0 01-2-2V5a2 2 0 012-2h7l5 5v12a2 2 0 01-2 2z'/%3E%3C/svg%3E"); }
.sidebar-icon-building { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 21h18M5 21V7l7-4 7 4v14'/%3E%3C/svg%3E"); }
.sidebar-icon-chat { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 10h8M8 14h5m-7 6l2.5-3H18a2 2 0 002-2V7a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h3z'/%3E%3C/svg%3E"); }
.sidebar-icon-user { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E"); }

@media print {
    #sidebar, header, footer, .gold-btn, .gold-flash { display: none !important; }
    main { padding: 0 !important; }
}

@media (max-width: 1023px) {
    #sidebar.open { transform: translateX(0); }
}
