:root {
    --auth-white: #f8f9fb;
    --auth-muted: #a7b1c7;
    --auth-bg: #0f1422;
    --auth-card: #1b2235;
    --auth-panel: #2b3250;
    --auth-panel-soft: #323a59;
    --auth-accent: #f9b17a;
    --auth-accent-strong: #f3a167;
    --auth-danger: #e35d6a;
    --brand-white: var(--auth-white);
    --brand-red: var(--auth-danger);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--auth-white);
    background:
        radial-gradient(1200px circle at 15% -10%, rgba(249, 177, 122, 0.15), transparent 60%),
        radial-gradient(900px circle at 90% 10%, rgba(103, 111, 157, 0.25), transparent 55%),
        linear-gradient(160deg, #0d1220 0%, #172036 45%, #111829 100%);
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 35%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.04), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.auth-shell {
    width: min(1100px, 100%);
    position: relative;
    z-index: 1;
}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    color: var(--auth-muted);
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.auth-top-meta {
    opacity: 0.7;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--auth-white);
    letter-spacing: 0;
    text-transform: none;
}

.brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--auth-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(15, 20, 34, 0.35);
}

.brand-badge img {
    filter: brightness(0) invert(1);
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.brand-meta {
    font-size: 0.75rem;
    color: var(--auth-muted);
    margin-top: 2px;
    letter-spacing: 0.04em;
}

.auth-card {
    background: var(--auth-card);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(5, 10, 25, 0.6);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: 520px;
    animation: auth-rise 0.6s ease-out;
}

.auth-panel {
    background: var(--auth-panel);
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: auth-fade 0.6s ease-out;
}

.auth-panel-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    margin: 0;
}

.auth-subtitle {
    margin: 0;
    color: var(--auth-muted);
    max-width: 360px;
}

.auth-tabs {
    display: flex;
    gap: 16px;
}

.auth-tab {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--auth-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.auth-tab.is-active {
    color: var(--auth-white);
    border-color: var(--auth-accent);
}

.auth-tab:hover {
    color: var(--auth-white);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.auth-media {
    position: relative;
    background-color: #3a4262;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 36px;
}

.auth-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/tela_login.jpeg');
    background-size: cover;
    background-position: center;
    transform-origin: center;
    animation: auth-kenburns 22s ease-in-out infinite;
    z-index: 0;
}

.auth-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 20, 34, 0.35), rgba(15, 20, 34, 0.85));
    opacity: 0.7;
    z-index: 1;
}

.auth-media-content {
    position: relative;
    z-index: 2;
    color: var(--auth-white);
    max-width: 240px;
    animation: auth-fade 0.7s ease-out 0.2s both;
}

.auth-media-kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.7);
}

.auth-media-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    margin: 8px 0;
}

.auth-media-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

@keyframes auth-kenburns {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.06) translate3d(2%, -2%, 0);
    }
    100% {
        transform: scale(1) translate3d(0, 0, 0);
    }
}

.glass-card {
    background: rgba(33, 40, 58, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
}

.icon-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.header-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    flex: 1;
    max-width: 80px;
}

.input-group-text {
    background: rgba(15, 20, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
}

.form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--auth-white);
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.04em;
}

.input-group .form-control {
    border-left: 0;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 0.2rem rgba(249, 177, 122, 0.25);
    color: var(--auth-white);
}

.btn-brand {
    background: var(--auth-accent);
    border-color: var(--auth-accent);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-brand:hover {
    background: var(--auth-accent-strong);
    border-color: var(--auth-accent-strong);
}

.btn-brand svg {
    margin-left: 4px;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--auth-white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--auth-white);
}

.form-check-input {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
}

.form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(249, 177, 122, 0.25);
    border-color: var(--auth-accent);
}

.muted-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.href {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    display: inline-block;
    margin-left: 6px;
}

.href:hover {
    color: var(--auth-accent) !important;
}

.link-light-muted {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
}

.link-light-muted:hover {
    color: var(--auth-accent) !important;
}

.input-group {
    position: relative;
}

input.field_error {
    border: 2px var(--auth-danger) solid;
}

p.field_error {
    color: var(--auth-white);
    font-size: 13px;
    text-align: left;
    margin-bottom: 2px;
}

.auth-footer {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.7);
}

/* Criacao de conta */
.step-section {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-shell {
    padding-top: 5px;
    padding-bottom: 3rem;
}

.step-section.is-hidden {
    opacity: 0;
    transform: translateY(8px);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.step-section.is-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.step-indicator {
    letter-spacing: 0.08em;
}

.bs-stepper .step-trigger {
    color: var(--auth-muted);
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.bs-stepper .step-trigger:focus {
    box-shadow: none;
}

.bs-stepper .bs-stepper-circle {
    background: rgba(255, 255, 255, 0.16);
    color: var(--auth-white);
}

.bs-stepper .step.active .bs-stepper-circle {
    background: var(--auth-accent);
    color: #2a2f44;
}

.bs-stepper .line {
    background: rgba(255, 255, 255, 0.2);
}

.table-glass thead {
    color: #fff;
}

.table-glass {
    --bs-table-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    color: #f8f9fa;
}

.table-glass thead th {
    border-color: rgba(255, 255, 255, 0.12);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.table-glass tbody td {
    border-color: rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.table-glass tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.table-glass tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

.table-glass tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.table-glass .form-check-input {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: transparent;
}

.table-glass .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

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

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

@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .auth-panel,
    .auth-media-content {
        animation: none;
    }
}

@media (max-width: 991px) {
    .auth-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-media {
        min-height: 220px;
        order: -1;
    }
}

@media (max-width: 575px) {
    .auth-panel {
        padding: 32px 24px;
    }

    .auth-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
