/* =========================================================
   NerdLore Auth Pages
   Telas de login/cadastro com identidade visual premium
   ========================================================= */

.auth-page {
    position: relative;
    min-height: calc(100vh - 86px);
    padding: 56px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(124, 77, 255, .24), transparent 32%),
        radial-gradient(circle at bottom right, rgba(0, 210, 255, .18), transparent 34%),
        linear-gradient(135deg, #060913 0%, #0b1020 48%, #070814 100%);
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-page::before {
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
    opacity: .45;
}

.auth-page::after {
    background:
        linear-gradient(90deg, transparent 0%, rgba(120, 88, 255, .12) 50%, transparent 100%),
        radial-gradient(circle at 22% 18%, rgba(156, 92, 255, .16), transparent 22%),
        radial-gradient(circle at 78% 74%, rgba(0, 214, 255, .13), transparent 24%);
    opacity: .85;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 32px;
    overflow: hidden;
    background: rgba(9, 13, 26, .76);
    box-shadow:
        0 28px 90px rgba(0,0,0,.48),
        0 0 0 1px rgba(124, 77, 255, .08),
        0 0 60px rgba(0, 210, 255, .08);
    backdrop-filter: blur(18px);
}

.auth-visual {
    min-height: 640px;
    position: relative;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(4,7,18,.06), rgba(4,7,18,.84)),
        var(--auth-art, linear-gradient(135deg, #121a35, #090c1a));
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 12%, rgba(255,255,255,.14), transparent 20%),
        linear-gradient(180deg, rgba(5,8,18,.06), rgba(5,8,18,.90));
    z-index: -1;
}

.auth-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: rgba(255,255,255,.88);
    background: rgba(0,0,0,.28);
    box-shadow: 0 0 22px rgba(124,77,255,.18);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-visual-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #00d4ff);
    box-shadow: 0 0 18px rgba(0,212,255,.75);
}

.auth-visual-content {
    margin-top: auto;
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(8,12,26,.55), rgba(8,12,26,.34));
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
}

.auth-visual-content h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.02;
    margin: 0 0 12px;
    letter-spacing: -.04em;
}

.auth-visual-content p {
    color: rgba(255,255,255,.74);
    margin: 0;
    max-width: 420px;
    font-size: 1rem;
}

.auth-panel {
    padding: clamp(28px, 4vw, 54px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(124,77,255,.15), transparent 35%),
        linear-gradient(180deg, rgba(8,12,25,.95), rgba(6,9,19,.98));
}

.auth-card { width: 100%; }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-brand img {
    display: block;
    max-height: 54px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.auth-brand-fallback {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #7c4dff, #00d4ff);
    box-shadow: 0 0 28px rgba(124,77,255,.28);
}

.auth-kicker {
    color: #00d4ff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -.045em;
}

.auth-subtitle {
    color: rgba(255,255,255,.68);
    margin-bottom: 26px;
}

.auth-alert {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    color: #fff;
    background: rgba(255,255,255,.07);
}

.auth-alert-danger {
    border-color: rgba(255, 99, 132, .38);
    background: rgba(255, 99, 132, .13);
}

.auth-form .form-label {
    color: rgba(255,255,255,.86);
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-form .form-control {
    min-height: 52px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(255,255,255,.065);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.auth-form .form-control:focus {
    color: #fff;
    border-color: rgba(0, 212, 255, .62);
    background: rgba(255,255,255,.09);
    box-shadow: 0 0 0 .22rem rgba(0, 212, 255, .13);
}

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

.auth-row-between {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin: 12px 0 24px;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,.72);
    font-size: .94rem;
}

.auth-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #7c4dff;
    flex: 0 0 auto;
}

.auth-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 800;
}

.auth-link:hover {
    color: #7cdbff;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
    background: linear-gradient(135deg, #7c4dff, #b14cff 45%, #00d4ff);
    box-shadow:
        0 14px 34px rgba(124,77,255,.34),
        0 0 28px rgba(0,212,255,.18);
}

.auth-submit:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 18px 42px rgba(124,77,255,.42),
        0 0 36px rgba(0,212,255,.24);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: rgba(255,255,255,.46);
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}

.auth-bottom {
    margin: 0;
    color: rgba(255,255,255,.68);
    text-align: center;
}

.auth-terms {
    margin-top: 20px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 991.98px) {
    .auth-page {
        padding: 26px 0;
        min-height: calc(100vh - 76px);
    }

    .auth-shell {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .auth-visual {
        min-height: 320px;
        padding: 22px;
        background-position: center top;
    }

    .auth-visual-content { padding: 18px; }
    .auth-visual-content h2 { font-size: 1.65rem; }
    .auth-panel { padding: 26px 20px 30px; }
    .auth-brand { justify-content: center; }
    .auth-title, .auth-subtitle, .auth-kicker { text-align: center; }

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

@media (max-width: 575.98px) {
    .auth-shell {
        width: min(100% - 14px, 440px);
        border-radius: 22px;
    }

    .auth-visual { min-height: 250px; }

    .auth-visual-badge {
        font-size: .70rem;
        padding: 8px 10px;
    }

    .auth-visual-content p { display: none; }
    .auth-panel { padding: 24px 16px 28px; }
    .auth-brand img { max-height: 44px; }
    .auth-title { font-size: 2rem; }
}

/* =========================================================
   Ajuste final da logo real em PNG
   ========================================================= */

.auth-brand {
    display: flex;
    align-items: center;
    margin-bottom: 34px;
}

.auth-brand-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
}

.auth-brand-symbol,
.auth-brand-wordmark,
.auth-brand-fallback {
    display: none !important;
}

@media (max-width: 991.98px) {
    .auth-brand {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .auth-brand {
        justify-content: center;
        margin-bottom: 28px;
    }

    .auth-brand-logo {
        max-width: 210px;
    }
}
.auth-brand,
.auth-brand-logo {
    background: transparent !important;
    box-shadow: none !important;
}

.auth-brand-logo {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
}