:root {
    --c-primary: #4F46E5;
    --c-primary-hover: #4338CA;
    --c-bg: #FFFFFF;
    --c-bg-faded: #F8FAFC;
    --c-text-main: #0F172A;
    --c-text-muted: #64748B;
    --c-border: #E2E8F0;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--c-bg);
    color: var(--c-text-main);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

a { text-decoration: none; }

.login-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ESQUERDA - BANNER MARKETING */
.login-banner {
    flex: 1.25;
    background: #0f172a;
    position: relative;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeCarousel 15s infinite linear;
}

.slide-1 { 
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1200&q=80'); 
    animation-delay: 0s;
}
.slide-2 { 
    background-image: url('https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1200&q=80'); 
    animation-delay: 5s;
}
.slide-3 { 
    background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=1200&q=80'); 
    animation-delay: 10s;
}

@keyframes fadeCarousel {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.02); }
    33% { opacity: 1; transform: scale(1.05); }
    43% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1.1); }
}

.login-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 27, 75, 0.95) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza a logo fisicamente */
    text-align: center; /* Centraliza os textos e os parágrafos */
    max-width: 550px;
    margin: 0 auto;
}

.banner-content .logo {
    margin-bottom: auto; /* Empurra o texto pro meio e logo pro topo */
}

.banner-text {
    margin-bottom: 3.5rem;
}

.banner-text h1 {
    font-size: clamp(2.5rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.banner-text p {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.6;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #f8fafc;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author .avatar {
    width: 48px;
    height: 48px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author strong { display: block; font-size: 1.05rem; color: #fff; margin-bottom: 3px;}
.author span { font-size: 0.85rem; color: #94a3b8; }

/* DIREITA - FORMULÁRIO DE LOGIN */
.login-form-wrapper {
    flex: 1;
    background: var(--c-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    max-width: 600px;
    margin: 0 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
}

.login-header { margin-bottom: 2.5rem; text-align: center; }
.login-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--c-text-main); margin-bottom: 0.5rem; letter-spacing: -0.5px;}
.login-header p { color: var(--c-text-muted); font-size: 1.05rem; }

.social-login { display: flex; gap: 1rem; margin-bottom: 2rem; }
.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    border: 1px solid var(--c-border);
    background: white;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-text-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}
.btn-social:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);}
.btn-social.google i { color: #ea4335; font-size: 1.3rem; }
.btn-social.github i { font-size: 1.3rem; }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--c-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}
.divider::before, .divider::after {
    content: ''; flex: 1; border-bottom: 1px solid var(--c-border);
}
.divider span { padding: 0 1rem; }

.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--c-text-main); }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.label-row label { margin-bottom: 0; }
.forgot-pass { font-size: 0.85rem; color: var(--c-primary); text-decoration: none; font-weight: 600; transition: 0.2s; }
.forgot-pass:hover { color: var(--c-primary-hover); text-decoration: underline;}

.input-icon { position: relative; display: flex; align-items: center; }
.input-icon i { position: absolute; left: 1rem; color: #94a3b8; font-size: 1.3rem; }
.input-icon i.toggle-pass { left: auto; right: 1rem; cursor: pointer; transition: 0.2s; }
.input-icon i.toggle-pass:hover { color: var(--c-primary); }
.input-icon input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    color: var(--c-text-main);
    transition: all 0.2s;
    background: #fff;
}
/* Correção do fundo azul/amarelo do Autofill do Chrome */
.input-icon input:-webkit-autofill,
.input-icon input:-webkit-autofill:hover, 
.input-icon input:-webkit-autofill:focus, 
.input-icon input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--c-text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-icon input::placeholder { color: #cbd5e1; }
.input-icon input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--c-primary) 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}
.btn-submit:hover { 
    background: linear-gradient(135deg, var(--c-primary-hover) 0%, #2563eb 100%);
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(79,70,229,0.4); 
}

.signup-link { text-align: center; margin-top: 2rem; font-size: 0.95rem; color: var(--c-text-muted); }
.signup-link a { color: var(--c-primary); font-weight: 700; text-decoration: none; transition: 0.2s; }
.signup-link a:hover { color: var(--c-primary-hover); text-decoration: underline; }

.register-banner { justify-content: center; background: #0f172a; }
.register-banner::before { background: linear-gradient(160deg, rgba(15, 23, 42, 0.2), rgba(49, 46, 129, 0.45)); }
.register-banner .banner-content { justify-content: center; align-items: flex-start; text-align: left; }
.register-banner .banner-text h1 {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}
.register-banner .banner-text p { color: #e2e8f0; }
.reg-kicker {
    display: inline-block;
    background: #4f46e5;
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1rem;
}
.reg-paths { display: grid; gap: 0.75rem; width: 100%; }
.reg-paths a {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: white;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-weight: 700;
}
.reg-paths a span { display: block; margin-top: 0.2rem; font-weight: 500; color: #cbd5e1; }
.reg-paths a:hover { background: rgba(255, 255, 255, 0.14); }
.field-hint { margin-top: 0.4rem; color: #64748b; font-size: 0.82rem; }
.register-panel { padding: 1.15rem 2.75rem 1rem; }
.register-panel .login-header { margin-bottom: 0.85rem; }
.register-panel .login-header h2 { font-size: 1.85rem; }
.register-panel .login-header a { margin-bottom: 0.45rem !important; }
.register-panel .login-header img { height: 42px !important; }
.register-panel .social-login { margin-bottom: 0.75rem; }
.register-panel .input-group { margin-bottom: 0.8rem; }
.register-panel .btn-submit { margin-top: 0.25rem; padding: 0.85rem; }
.register-panel .signup-link { margin-top: 0.55rem; }

@media(max-width: 900px) {
    body { overflow: auto; height: auto; }
    .login-banner { display: none; }
    .login-form-wrapper { width: 100%; max-width: 480px; padding: 2rem 1.25rem 3rem; }
}
