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

:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-strong: #f0f4fb;
    --accent: #0d6efd;
    --accent-strong: #0a58ca;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc3545;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

.main-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(960px, 100%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.auth-card .visual {
    position: relative;
    padding: 32px;
    background: linear-gradient(145deg, #e3efff 0%, #f7fbff 100%);
    border-right: 1px solid var(--border);
}

.visual .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e7f1ff;
    color: var(--accent-strong);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.visual h1 {
    margin: 18px 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.visual p {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 540px;
}

.visual .stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 14px;
}

.pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.form-panel {
    padding: 32px;
    background: var(--panel);
}

.form-panel h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.form-panel .sub {
    margin: 0 0 18px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.1s ease, background-color 0.1s ease;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    border-color: var(--accent-strong);
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.25);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text);
    border-color: var(--border);
}

.btn:hover {
    transform: translateY(-1px);
}

.error-box {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #842029;
    margin-bottom: 12px;
}

.helper {
    color: var(--muted);
    font-size: 14px;
}

.page {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 32px 18px 48px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    background: #0d6efd;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}

.brand a {
    color: #e9f2ff;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.card h3 {
    margin: 0 0 6px;
}

.card p {
    margin: 0 0 10px;
    color: var(--muted);
}

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

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill-small {
    padding: 8px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
}

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

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child {
    border-bottom: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}

.table th {
    background: var(--panel-strong);
    font-weight: 600;
}

.table tr:last-child td {
    border-bottom: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 13px;
    font-weight: 600;
}

.status-open {
    background: #e7f1ff;
    color: #0d6efd;
}

.status-progress {
    background: #fff4e5;
    color: #b45309;
}

.status-closed {
    background: #e8f5e9;
    color: #1b5e20;
}

@media (max-width: 720px) {
    .auth-card {
        border-radius: 12px;
    }

    .visual {
        display: none;
    }

    .form-panel {
        border-left: none;
    }
}
