/* ============================================
   Inventory Controlix Cloud — Login
   Tema: Blue Navy / Cobalt Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Manrope:wght@400;500;600;700;800&family=Sora:wght@700;800&display=swap');

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

:root {
    --blue:       #3B82F6;
    --blue-light: #60A5FA;
    --blue-dark:  #1D4ED8;
    --blue-dim:   rgba(59,130,246,0.18);
    --bg:         #06091a;
    --bg-panel:   #08101e;
    --bg-r:       #040816;
    --text:       #EEF2FF;
    --muted:      rgba(220,230,255,0.62);
    --input-bg:   rgba(8,12,30,0.80);
    --input-bd:   rgba(59,130,246,0.28);
    --success:    #4ade80;
    --surface:    rgba(59,130,246,0.08);
}

body {
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ═══ GRID SPLIT ═══ */
.login-container {
    display: grid;
    grid-template-columns: 480px 1fr;
    min-height: 100vh;
}

/* ═══ LEFT PANEL ═══ */
.login-panel-left {
    background: linear-gradient(180deg, rgba(6,9,26,0.98) 0%, rgba(8,12,28,0.96) 100%);
    display: flex;
    flex-direction: column;
    padding: 44px 56px;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    border-right: 1px solid rgba(59,130,246,0.14);
}

/* ── TOP BRAND STRIP ── */
.login-top-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(59,130,246,0.30);
    background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(8,12,28,0.55));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.45);
}

.login-top-brand::after {
    content: 'Ambiente Profissional';
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-light);
    background: rgba(59,130,246,0.14);
    border: 1px solid rgba(59,130,246,0.38);
    border-radius: 999px;
    padding: 4px 9px;
    white-space: nowrap;
    margin-left: auto;
}

.login-top-brand img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(59,130,246,0.30);
}

.login-top-brand span {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.login-top-brand span em {
    display: block;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: var(--blue);
    letter-spacing: 0.3px;
}

/* ── CONTENT AREA ── */
.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    position: relative;
}

.login-content::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.40), transparent);
}

/* ── HEADLINE ── */
.login-hero {
    width: min(430px, 100%);
    margin: 0 auto 28px;
    text-align: center;
}

.login-headline {
    font-family: 'Cinzel', serif;
    font-size: clamp(38px, 5.5vw, 62px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.login-headline .accent {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 60%, var(--blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.3px;
}

/* ── ALERT ── */
.alert {
    border-radius: 10px;
    border: none;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: shake .45s ease-in-out;
}

.alert-danger {
    background: rgba(255,80,80,.10);
    border: 1px solid rgba(255,80,80,.22);
    color: #ff9090;
}

.btn-close-white { filter: invert(1); }

@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%,60%  { transform: translateX(-5px); }
    40%,80%  { transform: translateX(5px); }
}

/* ── FIELDS ── */
.field-group { margin-bottom: 22px; }

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.field-input {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--input-bd);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.field-input::placeholder { color: rgba(220,230,255,0.30); }

.field-input:hover:not(:focus) {
    border-color: rgba(59,130,246,0.55);
    background: rgba(8,12,30,0.90);
}

.field-input:focus {
    border-color: var(--blue);
    background: rgba(59,130,246,0.07);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18), 0 8px 24px rgba(59,130,246,0.12);
}

.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #070c1e inset;
    -webkit-text-fill-color: var(--text);
    border-color: var(--blue);
}

.password-wrapper { position: relative; }
.password-wrapper .field-input { padding-right: 48px; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(8,12,30,0.55);
    border: 1px solid rgba(59,130,246,0.28);
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}
.password-toggle:hover { color: var(--blue-light); }
.password-toggle:focus { outline: none; }

/* ── BOTÃO ENTRAR ── */
.btn-enter {
    width: 100%;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 50%, var(--blue-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 28px rgba(59,130,246,0.38), inset 0 1px 0 rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-enter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: translateX(-100%);
    transition: transform .5s ease;
}

.btn-enter:hover::before { transform: translateX(100%); }

.btn-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(59,130,246,0.52), inset 0 1px 0 rgba(255,255,255,0.20);
}

.btn-enter:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(59,130,246,0.30);
}

.btn-label,
.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loading { display: none; }
.btn-loading .spinner-border { width:.95rem; height:.95rem; border-width:2px; }

.btn-enter.is-loading .btn-label   { display: none; }
.btn-enter.is-loading .btn-loading { display: flex; }
.btn-enter.is-loading { opacity: .85; cursor: not-allowed; }

/* ── NOTA SEGURANÇA ── */
.login-meta {
    margin-top: 16px;
    text-align: center;
}
.login-meta small {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.login-meta small i { color: var(--success); }

/* ── SECURITY TRUST BLOCK ── */
.security-trust {
    margin-top: 14px;
    padding: 12px 12px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(8,12,28,0.40));
    border: 1px solid rgba(59,130,246,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.security-trust-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(220,230,255,0.92);
    font-size: 12px;
}
.security-trust-head i { color: var(--blue); font-size: 14px; }

.security-trust-list {
    display: grid;
    gap: 6px;
}
.security-trust-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(147,197,253,0.88);
    font-size: 12px;
    font-weight: 500;
}
.security-trust-list i { color: var(--blue); font-size: 12px; }

/* ── RODAPÉ ESQUERDO ── */
.login-bottom {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(59,130,246,0.14);
}

.social-links { display: flex; gap: 12px; }

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 19px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 8px 20px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: all .25s ease;
}
.social-btn:hover { transform: translateY(-3px) scale(1.05); }
.social-btn-linkedin { background: linear-gradient(135deg,#0a66c2,#1877F2); }
.social-btn-github   { background: linear-gradient(135deg,#24292f,#3d444d); }

.creator-connect {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.creator-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.creator-label i { color: var(--blue); font-size: 13px; }
.creator-tag {
    font-size: 12px;
    color: var(--text);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(59,130,246,0.38);
    background: rgba(59,130,246,0.10);
}

/* ═══════════════════════════════════════════
   RIGHT PANEL — Showcase da Marca
═══════════════════════════════════════════ */
.login-panel-right {
    background:
        radial-gradient(ellipse at 28% 20%, rgba(96,165,250,0.45) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 78%, rgba(37,99,235,0.35) 0%, transparent 42%),
        linear-gradient(160deg, #07101e 0%, #0d1f57 40%, #112677 70%, #0d1a4a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel-right::before {
    content: '';
    position: absolute;
    inset-block: 8%;
    left: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(59,130,246,0.45), transparent);
}

.right-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.right-glow-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 65%);
    top: -8%; left: 5%;
    animation: glow-drift 16s ease-in-out infinite alternate;
}
.right-glow-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(29,78,216,0.30) 0%, transparent 65%);
    bottom: 4%; right: -2%;
    animation: glow-drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes glow-drift {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(30px,-22px) scale(1.08); }
}

.right-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ── Logo completo (horizontal, com texto) ── */
.brand-full-logo {
    max-width: 420px;
    width: 82%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(59,130,246,0.35));
    transition: filter .4s ease;
}
.brand-full-logo:hover {
    filter: drop-shadow(0 0 60px rgba(59,130,246,0.55));
}

/* ── Brand Showcase ── */
.brand-showcase {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 32px;
    animation: fadeUp .8s cubic-bezier(.4,0,.2,1) both .2s;
}
@keyframes fadeUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Logo wrapper ── */
.brand-logo-wrap {
    width: 200px;
    height: 200px;
    border-radius: 32px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow:
        0 0 0 8px rgba(59,130,246,0.10),
        0 0 80px rgba(59,130,246,0.28),
        0 24px 60px rgba(0,0,0,0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: transform .4s ease, box-shadow .4s ease;
}
.brand-logo-wrap:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 0 14px rgba(59,130,246,0.14),
        0 0 110px rgba(59,130,246,0.38),
        0 32px 70px rgba(0,0,0,0.55);
}
.brand-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: none;
}

/* Logo no painel esquerdo (topo) — sem fundo */
.login-top-brand img {
    background: none;
    border-color: rgba(59,130,246,0.30);
}

/* ── Brand name ── */
.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    line-height: 1.15;
}

.brand-name span {
    display: block;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    color: var(--blue-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

.brand-tagline {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.4px;
    max-width: 420px;
}

/* ── Pills de features ── */
.brand-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: min(580px, 95%);
}
.brand-pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    color: rgba(220,235,255,0.95);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}
.brand-pills span i { font-size: 12px; }

/* ── Info cards ── */
.brand-info-grid {
    width: min(540px, 92%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.info-card {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(10,20,60,0.55);
    backdrop-filter: blur(8px);
    padding: 14px 14px 12px;
    text-align: left;
}
.info-card h3 {
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(220,230,255,0.96);
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.info-card h3 i { color: var(--blue-light); }
.info-card ul { margin:0; padding-left:16px; display:grid; gap:6px; }
.info-card li { font-size:12px; color:rgba(147,197,253,0.85); line-height:1.4; }
.info-card-highlight {
    border-color: rgba(255,255,255,0.18);
    background: rgba(15,30,80,0.65);
}

/* ── Metrics ── */
.brand-metrics {
    width: min(540px, 92%);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.metric-item {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,20,60,0.50);
    backdrop-filter: blur(6px);
    padding: 12px 14px;
    display: grid;
    gap: 3px;
    text-align: center;
}
.metric-item strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-light);
    font-family: 'Cinzel', serif;
}
.metric-item span {
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(147,197,253,0.70);
    font-weight: 600;
}

/* ═══ DESKTOP COMPACT ═══ */
@media (min-width: 961px) {
    .login-panel-left {
        padding: 20px 32px 18px;
        overflow-y: hidden;
    }
    .login-top-brand { padding: 8px 12px; border-radius: 12px; }
    .login-top-brand img { width: 40px; height: 40px; }
    .login-top-brand span { font-size: 14px; }
    .login-top-brand span em { font-size: 10px; }
    .login-top-brand::after { font-size: 8px; padding: 3px 7px; }
    .login-content { justify-content: flex-start; padding: 16px 0 8px; }
    .login-hero { margin: 0 auto 14px; }
    .login-headline { font-size: clamp(36px, 4.8vw, 54px); margin-bottom: 6px; }
    .field-group { margin-bottom: 14px; }
    .field-label { font-size: 11px; margin-bottom: 6px; }
    .field-input { padding: 11px 14px; font-size: 14px; }
    .btn-enter { padding: 12px 16px; font-size: 14px; margin-top: 4px; }
    .login-meta { margin-top: 10px; }
    .security-trust { margin-top: 10px; padding: 10px 10px 8px; }
    .security-trust-list { gap: 4px; }
    .security-trust-list span { font-size: 11px; }
    .login-bottom { padding-top: 12px; }
    .social-btn { width: 40px; height: 40px; font-size: 17px; }
    .creator-tag { font-size: 11px; padding: 4px 10px; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
    .login-container { grid-template-columns: 1fr; }
    .login-panel-right { display: none; }
    .login-panel-left {
        min-height: 100vh;
        padding: calc(env(safe-area-inset-top,0px) + 42px) 26px 30px;
        background:
            radial-gradient(circle at 15% 10%, rgba(59,130,246,0.14) 0%, transparent 35%),
            linear-gradient(180deg, rgba(6,9,26,0.98) 0%, rgba(8,12,28,0.96) 100%);
        border-right: none;
    }
    .login-content {
        background: rgba(255,255,255,0.02);
        border: 1px solid rgba(59,130,246,0.18);
        border-radius: 18px;
        padding: 24px 18px;
        margin-top: 18px;
    }
    .login-headline { font-size: 50px; }
}

@media (max-width: 500px) {
    .login-panel-left { padding: calc(env(safe-area-inset-top,0px) + 36px) 16px 24px; }
    .login-content { border-radius: 16px; padding: 20px 14px; margin-top: 16px; }
    .login-headline { font-size: 42px; }
    .field-input { font-size: 16px; }
    .btn-enter { border-radius: 14px; font-size: 16px; padding: 15px 18px; }
    .login-bottom { flex-direction: column; align-items: center; gap: 12px; }
    .login-top-brand::after { display: none; }
}

@media (max-height: 700px) {
    .login-panel-left { padding-top: 24px; padding-bottom: 24px; }
    .login-content { padding: 18px 0; }
    .login-headline { font-size: 44px; margin-bottom: 8px; }
}

.hidden { display: none !important; }
