:root {
    --bg-1: #f8f3ec;
    --bg-2: #eef3f2;
    --accent: #0f766e;
    --accent-2: #f97316;
    --text: #0f172a;
    --muted: #475569;
    --card: #ffffff;
    --border: #e2e8f0;
    --ink-soft: rgba(15, 23, 42, 0.08);
}

 * { box-sizing: border-box; }

body {
    font-family: 'Sora', sans-serif;
    background:
        radial-gradient(900px 420px at 10% 10%, rgba(15, 118, 110, 0.18), transparent 55%),
        radial-gradient(900px 480px at 90% 0%, rgba(249, 115, 22, 0.16), transparent 55%),
        radial-gradient(700px 360px at 70% 90%, rgba(15, 118, 110, 0.10), transparent 55%),
        linear-gradient(180deg, var(--bg-1), var(--bg-2));
    color: var(--text);
    min-height: 100vh;
}

 .app-shell {
     min-height: 100vh;
     display: flex;
     flex-direction: column;
 }

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

 .brand {
     display: flex;
     align-items: center;
     gap: 10px;
 }

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px rgba(15, 118, 110, 0.35);
}

 .brand-title { font-weight: 600; }

 .app-content {
     flex: 1;
     padding: 24px;
 }

 .view { animation: fadeUp 0.4s ease; }

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: center;
    max-width: 980px;
    margin: 28px auto 0;
}

.login-hero {
    padding: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.14);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.1;
    margin: 16px 0 12px;
}

.hero-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 420px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.stat-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 18px;
}

.login-title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
}

.login-sub {
    color: var(--muted);
    font-size: 0.95rem;
}

.info-card, .table-card {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 22px var(--ink-soft);
}

 .table-card table { color: var(--text); }
.table-card thead th { color: var(--muted); font-weight: 600; }

 .muted { color: var(--muted); }

 .foto-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
     gap: 8px;
 }

 .foto-grid img {
     width: 100%;
     height: 88px;
     object-fit: cover;
     border-radius: 10px;
     border: 1px solid var(--border);
 }

.badge-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0d9488);
    border-color: transparent;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-2), #fb923c);
    border-color: transparent;
}

.btn-outline-light {
    color: var(--text);
    border-color: var(--border);
}

.btn-outline-light:hover {
    background: #f3f4f6;
    border-color: #f3f4f6;
}

.form-control, .form-select {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.22);
}

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

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

.login-hero, .login-card { animation: floatIn 0.6s ease; }

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .app-content { padding: 16px; }
    .login-hero { padding: 8px; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
