/* ── Auth page background ─────────────────────────────────────────────────── */
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1120;
    overflow: hidden;
    position: relative;
}

/* Blobs desfocados atrás do card */
body.auth-page::before,
body.auth-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    animation: blobFloat 12s ease-in-out infinite alternate;
}

body.auth-page::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #1d4ed8, #7c3aed);
    top: -120px;
    left: -100px;
    animation-delay: 0s;
}

body.auth-page::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #0ea5e9, #6d28d9);
    bottom: -100px;
    right: -80px;
    animation-delay: -6s;
}

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, 20px) scale(1.08); }
    100% { transform: translate(-20px, 40px) scale(0.95); }
}

/* ── Login shell: 2-column layout ─────────────────────────────────────────── */
.login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(960px, 96vw);
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(2px);
}

/* ── Form column (left) ───────────────────────────────────────────────────── */
.login-form-col {
    flex: 0 0 400px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.login-form-inner {
    width: 100%;
    max-width: 320px;
}

.login-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
}

.login-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.login-alert {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-fields label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
}

.login-fields input,
.login-fields select {
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    background: #1e2a3a;
    color: #fff;
    transition: border-color 0.15s, background 0.15s;
}

/* ── Custom select tenant ─────────────────────────────────────────────────── */
.login-custom-select {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
}

.login-custom-select__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
}

.login-custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: #1e2a3a;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    color: rgba(255,255,255,.6);
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: border-color 0.15s;
}

.login-custom-select__trigger:focus,
.login-custom-select--open .login-custom-select__trigger {
    border-color: #60a5fa;
    color: #fff;
    outline: none;
}

.login-custom-select__trigger.has-value {
    color: #fff;
}

.login-custom-select__list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1e2a3a;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    max-height: 200px;
    overflow-y: auto;
}

.login-custom-select--open .login-custom-select__list {
    display: block;
}

.login-custom-select__option {
    padding: 0.6rem 0.75rem;
    color: rgba(255,255,255,.85);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.1s;
}

.login-custom-select__option:hover,
.login-custom-select__option.selected {
    background: rgba(96,165,250,.2);
    color: #fff;
}

.login-fields input::placeholder { color: rgba(255,255,255,.35); }

.login-fields input:focus,
.login-fields select:focus {
    border-color: #60a5fa;
    background: rgba(255,255,255,.15);
    box-shadow: 0 0 0 3px rgba(96,165,250,.2);
}

.login-btn {
    margin-top: 0.25rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(37,99,235,.4);
}

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

/* ── Carousel column (right) ──────────────────────────────────────────────── */
.login-carousel-col {
    flex: 1;
    background: linear-gradient(145deg, #0f172a, #1e3a5f);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.login-carousel-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(37,99,235,.25) 0%, transparent 70%);
    pointer-events: none;
}

.login-carousel {
    position: relative;
    width: 100%;
    max-width: 340px;
}

/* ── Individual slide ─────────────────────────────────────────────────────── */
.login-slide {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.4s ease;
}

.login-slide--active {
    display: flex;
}

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

.login-slide__icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

.login-slide__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}

.login-slide__sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,.72);
    line-height: 1.55;
    margin: 0;
    max-width: 280px;
}

/* ── Badge ────────────────────────────────────────────────────────────────── */
.login-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.login-badge--blue   { background: rgba(37,99,235,.25);  color: #93c5fd; }
.login-badge--green  { background: rgba(22,163,74,.25);  color: #86efac; }
.login-badge--orange { background: rgba(217,119,6,.25);  color: #fcd34d; }
.login-badge--purple { background: rgba(124,58,237,.25); color: #c4b5fd; }
.login-badge--red    { background: rgba(220,38,38,.25);  color: #fca5a5; }

/* ── Navigation dots ──────────────────────────────────────────────────────── */
.login-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.login-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.login-dot--active {
    background: #fff;
    transform: scale(1.3);
}

/* ── AuthCore OAuth button ────────────────────────────────────────────────── */
.btn-authcore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-authcore:hover { background: #16213e; }

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    color: #999;
    font-size: 0.85rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

/* ── Responsive: collapse carousel on small screens ──────────────────────── */
@media (max-width: 680px) {
    .login-shell {
        flex-direction: column;
        min-height: unset;
    }

    .login-form-col {
        flex: none;
        padding: 2rem 1.5rem;
    }

    .login-carousel-col {
        padding: 2rem 1.5rem;
        min-height: 220px;
    }

    .login-slide__title { font-size: 1.2rem; }
}
