* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    display: flex;
    height: 100vh; /* Altura total da viewport */
    width: 100%;
}

/* Lado esquerdo com gradiente */
.left-side {
    flex: 1; /* Ocupa metade da tela */
    background: linear-gradient(135deg, #ec380b 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    gap: 28px;
    padding: 40px 24px;
}

/* Animação do gradiente */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Conteúdo de boas-vindas */
.welcome-content {
    text-align: center;
}



.welcome-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.welcome-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Link de volta para a landing page */
.link-landing {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.link-landing:hover,
.link-landing:focus-visible {
    background: rgba(255, 255, 255, 0.15);
}

/* Elemento decorativo */
.decorative-element {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 auto;
    animation: pulse 3s ease infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Lado direito com o formulário */
.right-side {
    flex: 1; /* Ocupa a outra metade */
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Container do formulário de login */
.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* mesma altura para caixas de texto e seletor, em qualquer navegador */
.form-group input,
.form-group select {
    line-height: 1.25;
}

/* Seletor "Tipo de login": mesmo visual dos outros campos, com setinha própria */
.form-group select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* no modo escuro o tema troca o fundo inteiro do campo; aqui a setinha volta, mais clara */
[data-theme="dark"] .login-container .form-group select,
[data-theme="dark"] .login-container .form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa0b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
}

button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ec380b 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-side {
        min-height: 300px;
    }
    
    .welcome-content h1 {
        font-size: 2rem;
    }
}

/* Logo do lado esquerdo (antes ficava em posição fixa e desalinhava em outras telas) */
.logo-boas-vindas {
    height: 150px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .logo-boas-vindas {
        height: 90px;
    }
}