﻿/* wwwroot/css/login.css */

:root {
    --lg-bg: rgba(10,12,14,.72);
    --lg-panel: rgba(25,30,35,.72);
    --lg-border: rgba(255,255,255,.14);
    --lg-border2: rgba(255,255,255,.22);
    --lg-text: #e7e7e7;
    --lg-muted: rgba(231,231,231,.72);
    --lg-focus: rgba(106,169,255,.55);
    --lg-shadow: 0 18px 60px rgba(0,0,0,.55);
}

/* ✅ Layout 2 colunas (Login esquerda / Info direita) */
.login-page {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    align-items: start;
    justify-content: center;
    padding: 40px 18px 64px;
    max-width: 1180px;
    margin: 0 auto;
}

.login-left, .login-right {
    min-width: 0;
}

/* Em mobile vira 1 coluna */
@media (max-width: 980px) {
    .login-page {
        grid-template-columns: 1fr;
        max-width: 720px;
    }
}

/* card */
.login-card {
    width: 100%;
    border: 1px solid var(--lg-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--lg-shadow);
    background: linear-gradient(180deg, rgba(23,28,32,.85), rgba(15,18,21,.88));
    backdrop-filter: blur(10px);
}

/* header do card */
.login-card__head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--lg-border);
    background: repeating-linear-gradient( 135deg, rgba(255,255,255,.06) 0, rgba(255,255,255,.06) 12px, rgba(255,255,255,.02) 12px, rgba(255,255,255,.02) 24px );
}

.login-badge {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(106,169,255,.85);
    box-shadow: 0 0 0 4px rgba(106,169,255,.18);
}

.login-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--lg-text);
}

/* body */
.login-card__body {
    padding: 18px 18px 16px;
    color: var(--lg-text);
}

.login-sub {
    margin: 0 0 14px;
    color: var(--lg-muted);
    font-size: 13px;
}

/* grid */
.login-grid {
    display: grid;
    gap: 12px;
}

/* campos */
.login-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--lg-muted);
}

.login-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--lg-border);
    background: rgba(0,0,0,.22);
    color: var(--lg-text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .login-input:focus {
        border-color: rgba(106,169,255,.55);
        box-shadow: 0 0 0 4px rgba(106,169,255,.16);
        background: rgba(0,0,0,.28);
    }

/* botão */
.login-btn {
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(106,169,255,.45);
    background: linear-gradient(180deg, rgba(106,169,255,.26), rgba(106,169,255,.14));
    color: var(--lg-text);
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .06s ease, filter .15s ease, border-color .15s ease;
}

    .login-btn:hover {
        filter: brightness(1.08);
        border-color: rgba(106,169,255,.62);
    }

    .login-btn:active {
        transform: translateY(1px);
    }

/* erro */
.login-error {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,120,120,.35);
    background: rgba(255,120,120,.10);
    color: #ffd0d0;
    font-size: 13px;
}

/* pequenas notas/links */
.login-foot {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--lg-muted);
    font-size: 12px;
}

    .login-foot a {
        color: rgba(106,169,255,.95);
        text-decoration: none;
    }

        .login-foot a:hover {
            text-decoration: underline;
        }

/* ✅ Info box */
.login-infobox {
    width: 100%;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    background: linear-gradient(180deg, rgba(23,28,32,.75), rgba(15,18,21,.82));
    backdrop-filter: blur(10px);
}

.login-infobox__head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    background: repeating-linear-gradient( 135deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 12px, rgba(255,255,255,.015) 12px, rgba(255,255,255,.015) 24px );
}

.login-infobox__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(106,169,255,.85);
    box-shadow: 0 0 0 4px rgba(106,169,255,.16);
}

.login-infobox__title {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: #e7e7e7;
}

.login-infobox__body {
    padding: 16px 18px 18px;
    color: rgba(231,231,231,.92);
    line-height: 1.55;
    font-size: 13.5px;
}

    .login-infobox__body p {
        margin: 0 0 12px;
    }

.login-infobox__list {
    margin: 8px 0 14px 18px;
    padding: 0;
}

    .login-infobox__list li {
        margin: 6px 0;
        color: rgba(231,231,231,.88);
    }

.login-infobox__note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(106,169,255,.30);
    background: rgba(106,169,255,.10);
    color: rgba(231,231,231,.94);
}

.mw-auth {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.mw-welcome {
    font-size: 13px;
    opacity: .9;
    white-space: nowrap;
}

    .mw-welcome strong {
        font-weight: 700;
    }

.login-infobox__head {
    position: relative;
    padding-left: 64px; /* espaço só para o texto */
    display: flex;
    align-items: center;
    min-height: 34px; /* NÃO aumenta a altura visual */
}

    /* ÍCONE GRANDE (flutuante) */
    .login-infobox__head::before {
        content: "";
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px; /* 👈 2x do anterior (26 → 52) */
        height: 40px;
        background: url("/img/inf_icon.png") no-repeat center / contain;
        opacity: 1;
        pointer-events: none;
    }
