:root {
    --bg: #050816;
    --surface: rgba(2, 6, 23, 0.72);
    --card: rgba(11, 18, 32, 0.92);
    --text: #e5e7eb;
    --muted: #a3b2c7;
    --primary: #ffb020;
    --primary-dark: #ff8a00;
    --danger: #ef4444;
    --success: #22c55e;
    --ring: rgba(255, 176, 32, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 500px at 15% 5%, rgba(255, 176, 32, 0.18), rgba(255, 176, 32, 0) 60%),
        linear-gradient(135deg, #030712, #0b1220);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("bg-ciclismo.png") center center / cover no-repeat;
    opacity: 0.14;
    filter: saturate(1.1) contrast(1.02);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.66));
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--primary);
}

.wrapper {
    width: min(1100px, 95%);
    margin: 0 auto;
    padding: 24px 0 40px;
}

.auth-wrapper {
    width: min(560px, 95%);
    padding: 62px 0 60px;
}

.consulta-wrap {
    width: min(640px, 100%);
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.2fr 1fr;
}

.panel {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 26px;
    box-shadow:
        0 18px 45px rgba(2, 6, 23, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-image {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: block;
}

h1, h2, h3 {
    margin-top: 0;
}

.auth-wrapper h1 {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--muted);
    margin-top: -8px;
}

label {
    display: block;
    margin: 12px 0 6px;
    color: #cbd5e1;
    font-weight: 600;
}

input, button {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 12px 12px;
    font-size: 1rem;
}

input {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
}

button {
    margin-top: 14px;
    cursor: pointer;
    border: none;
    font-weight: 700;
    background: var(--primary);
    color: #111827;
    transition: 0.2s ease;
    box-shadow: 0 10px 25px rgba(255, 176, 32, 0.18);
}

button:hover {
    background: var(--primary-dark);
    box-shadow: 0 14px 30px rgba(255, 138, 0, 0.24);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.14);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    margin-top: 14px;
}

.notice {
    margin: 12px 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.notice.error {
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.notice.success {
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.result-card {
    margin-top: 14px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.result-card img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.top-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.top-actions--center {
    justify-content: center;
    text-align: center;
}

.brand-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 10px;
    font-weight: 900;
}

.brand-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(320px, 70%);
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 176, 32, 0), rgba(255, 176, 32, 0.95), rgba(255, 176, 32, 0));
}

.top-actions a {
    text-decoration: none;
    background: #1e293b;
    border-radius: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.95rem;
}

th, td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-align: left;
    padding: 10px 8px;
}

th {
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
