:root {
    --primary: #f58220; /* Laranja do Logo */
    --accent-blue: #004a99; /* Azul do Logo */
    --dark-navy: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    background: var(--white);
    overflow: hidden;
}

.split-screen {
    display: flex;
    height: 100vh;
}

/* --- LADO ESQUERDO (VISUAL) --- */
.login-visual {
    flex: 1.1;
    background-color: var(--dark-navy);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- NOVO EFEITO: Esferas de Luz Animadas --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Deixa a cor difusa como um brilho */
    z-index: 1;
    opacity: 0.5;
    animation: float 12s infinite ease-in-out alternate;
}

/* Laranja no topo esquerdo */
.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(245, 130, 32, 0.4); 
    top: -10%;
    left: -10%;
}

/* Azul no canto inferior direito */
.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 74, 153, 0.5);
    bottom: -15%;
    right: -10%;
    animation-delay: -4s; /* Começa num ponto diferente da animação */
}

/* Mistura mais suave no centro */
.blob-3 {
    width: 350px;
    height: 350px;
    background: rgba(255, 152, 68, 0.2); 
    top: 30%;
    left: 40%;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
    100% { transform: translate(-20px, 30px) scale(0.9); }
}

/* --- GLASS BOX MAIS PEQUENA E ELEGANTE --- */
/* --- GLASS BOX COM CONTRASTE PARA O LOGO --- */
.glass-box-small {
    position: relative;
    z-index: 10;
    /* Fundo escuro com maior opacidade para destacar do fundo com blobs */
    background: rgba(15, 23, 42, 0.75); /* #0f172a com opacidade */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Borda com gradiente laranja + azul */
    border: 1px solid transparent;
    border-radius: 32px;
    background-clip: padding-box;
    padding: 2.5rem 1.5rem;
    text-align: center;
    width: 85%;
    max-width: 320px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 130, 32, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cria o efeito de borda gradiente */
.glass-box-small::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px; /* espessura da borda */
    background: linear-gradient(135deg, var(--primary), var(--accent-blue), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-box-small:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 35px 65px rgba(245, 130, 32, 0.25);
}

.logo-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
}

.logo-hero {
    width: 100%;
    max-width: 220px; 
    height: auto;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); /* Sombra para o logo saltar à vista */
}

/* --- LADO DIREITO (FORMULÁRIO) --- */
.login-form-side {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: var(--white);
}

.form-content {
    width: 100%;
    max-width: 380px;
}

.login-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    padding: 1.1rem 1.1rem 1.1rem 3.2rem;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 10px 15px -3px rgba(245, 130, 32, 0.1);
}

.btn-login {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #e06c00;
    box-shadow: 0 20px 25px -5px rgba(245, 130, 32, 0.3);
    transform: translateY(-2px);
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    border: 1px solid #fee2e2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.login-footer {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* MOBILE */
@media (max-width: 1024px) {
    .login-visual { display: none; }
    .login-form-side { flex: 1; padding: 2rem; }
}