@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #050816;
    --color-bg-soft: #0b1020;
    --color-primary: #4f46e5;
    --color-primary-soft: rgba(79, 70, 229, 0.12);
    --color-primary-strong: #6366f1;
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-border: #1f2937;
    --color-danger: #ef4444;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #111827 0%, #020617 40%, #000 100%);
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.app-main {
    flex: 1;
    display: flex;
    padding: 32px 20px 40px;
}

.app-main-centered {
    align-items: center;
    justify-content: center;
}

.app-card-login {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    max-width: 980px;
    width: 100%;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.35), transparent 55%),
                radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.2), transparent 55%),
                #020617;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.app-card-login-left {
    padding: 32px 36px 32px 34px;
    border-right: 1px solid rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.app-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.65);
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-brand-text-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.app-brand-text-subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
}

.app-hero-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    margin: 24px 0 10px;
}

.app-hero-highlight {
    color: #a855f7;
}

.app-hero-text {
    font-size: 14px;
    color: var(--color-text-muted);
    max-width: 360px;
}

.app-login-pills {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(55, 65, 81, 0.85);
    margin-top: 18px;
}

.app-login-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--color-text-muted);
}

.app-login-pill--primary {
    background: linear-gradient(to right, #4f46e5, #a855f7);
    color: #f9fafb;
    font-weight: 500;
}

.app-login-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    margin-right: 6px;
}

.app-login-metadata {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    font-size: 11px;
    color: var(--color-text-muted);
}

.app-login-metadata strong {
    color: var(--color-text);
    font-weight: 500;
}

.app-card-login-right {
    padding: 30px 30px 28px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), #020617 60%);
}

.app-form-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 18px;
}

.app-form-group {
    margin-bottom: 14px;
}

.app-form-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    margin-bottom: 4px;
}

.app-form-label span {
    color: var(--color-text-muted);
}

.app-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: rgba(15, 23, 42, 0.85);
    padding: 9px 13px;
    color: var(--color-text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.app-input:focus {
    border-color: var(--color-primary-strong);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.6);
    background: rgba(15, 23, 42, 0.95);
}

.app-input::placeholder {
    color: #6b7280;
}

.app-button-primary {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    color: #f9fafb;
    box-shadow: 0 14px 35px rgba(88, 80, 236, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.app-button-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(88, 80, 236, 0.65);
}

.app-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(88, 80, 236, 0.5);
}

.app-button-primary-icon {
    font-size: 16px;
}

.app-error {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #fecaca;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
}

/* Layout interno com topbar e conteúdo */

.app-topbar {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(15, 23, 42, 0.85);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.2), transparent 55%),
                #020617;
    backdrop-filter: blur(14px);
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-topbar-title {
    font-size: 15px;
    font-weight: 500;
}

.app-topbar-user {
    font-size: 13px;
    color: var(--color-text-muted);
}

.app-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-topbar-link {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--color-text-muted);
    border: 1px solid transparent;
}

.app-topbar-link--primary {
    border-color: rgba(55, 65, 81, 0.85);
    background: rgba(17, 24, 39, 0.8);
}

.app-topbar-link:hover {
    color: var(--color-text);
    border-color: rgba(55, 65, 81, 0.95);
}

.app-layout {
    max-width: 1200px;
    margin: 26px auto 34px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
}

.app-sidebar {
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 16px 14px 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

.app-sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.app-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-menu-item + .app-menu-item {
    margin-top: 4px;
}

.app-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 7px 9px;
    border-radius: 9px;
    color: var(--color-text-muted);
    transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.app-menu-link:hover {
    background: rgba(31, 41, 55, 0.95);
    color: var(--color-text);
    transform: translateY(-0.5px);
}

.app-menu-icon {
    width: 18px;
    text-align: center;
}

.app-menu-link--active {
    background: var(--color-primary-soft);
    color: #e5e7eb;
}

.app-content-card {
    background: rgba(15, 23, 42, 0.94);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 18px 18px 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.92);
}

.app-content-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.app-content-title {
    font-size: 18px;
    font-weight: 500;
}

.app-content-subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
}

.app-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
    margin-top: 4px;
}

.app-form-footer {
    margin-top: 16px;
}

.app-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.95);
    color: var(--color-text-muted);
}

.app-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

.app-table-wrapper {
    margin-top: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.app-table thead {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617 70%);
}

.app-table th,
.app-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
}

.app-table th {
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.app-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.96);
}

.app-table tbody tr:hover {
    background: rgba(31, 41, 55, 0.95);
}

.app-chip-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(55, 65, 81, 0.95);
}

.app-chip-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
}

.app-chip-status--success .app-chip-status-dot {
    background: #22c55e;
}

.app-chip-status--warning .app-chip-status-dot {
    background: #facc15;
}

.app-chip-status--danger .app-chip-status-dot {
    background: #ef4444;
}

.app-chip-status--muted .app-chip-status-dot {
    background: #6b7280;
}

.app-chip-status--success {
    color: #bbf7d0;
    border-color: rgba(22, 163, 74, 0.75);
}

.app-chip-status--warning {
    color: #fef9c3;
    border-color: rgba(202, 138, 4, 0.75);
}

.app-chip-status--danger {
    color: #fee2e2;
    border-color: rgba(220, 38, 38, 0.75);
}

.app-chip-status--muted {
    color: #e5e7eb;
}

.app-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.95);
}

.app-badge-small-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #22c55e;
}

@media (max-width: 900px) {
    .app-card-login {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-card-login-left {
        display: none;
    }

    .app-main {
        padding: 20px 16px 28px;
    }

    .app-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-sidebar {
        display: none;
    }
}
