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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(to right, #f0f7ff 0%, #e3f2fd 40%, #bbdefb 70%, #90caf9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Blobs decorativos azuis no fundo */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.4) 0%, rgba(66, 165, 245, 0) 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    filter: blur(80px);
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.3) 0%, rgba(25, 118, 210, 0) 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    filter: blur(80px);
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Seção Esquerda - Card de Login */
.login-section {
    background: white;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.welcome-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.6;
}

.welcome-description {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Botões Sociais */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-google {
    background: white !important;
    color: #1a1a1a !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    padding: 13px 24px !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: none !important;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-icon svg {
    width: 100%;
    height: 100%;
}

.email-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    transition: color 0.2s ease;
    padding: 8px 0;
    cursor: pointer;
}

.email-option:hover {
    color: #003E9C;
}

.email-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.terms-text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-top: 32px;
}

.terms-text a {
    color: #1a1a1a;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-text a:hover {
    color: #003E9C;
}

/* Seção Direita - Ilustração */
.chameleon-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 600px;
}

.chameleon-circle {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chameleon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Elementos decorativos */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decorative-circle {
    position: absolute;
    background: rgba(66, 165, 245, 0.3);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.decorative-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.decorative-circle:nth-child(2) {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 10%;
    animation-delay: 1.5s;
}

.decorative-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 5%;
    animation-delay: 3s;
}

.decorative-star {
    position: absolute;
    color: #fbbf24;
    font-size: 20px;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.8;
}

.decorative-star:nth-child(4) {
    top: 20%;
    left: 20%;
    animation-delay: 1s;
}

.decorative-star:nth-child(5) {
    bottom: 25%;
    right: 20%;
    animation-delay: 2.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Container do formulário de email (Modal) */
.email-form-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-email-form {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-email-form:hover {
    background-color: #f1f5f9;
    color: #1a1a1a;
}

/* Logo e Título do Modal */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.logo-arrow {
    font-size: 48px;
}

.logo-container h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.logo-container p {
    font-size: 0.95rem;
    color: #64748b;
}

/* Formulários */
.form {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #003E9C;
    box-shadow: 0 0 0 3px rgba(0, 62, 156, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* Password Input com Toggle */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #64748b;
    font-size: 16px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #003E9C;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 8px;
    color: #003E9C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #002b6f;
    text-decoration: underline;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 12px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    flex: 1;
    justify-content: center;
}

.radio-label:hover {
    border-color: #003E9C;
    background: #f8fafc;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    width: auto;
    padding: 0;
    accent-color: #003E9C;
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: #003E9C;
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #003E9C;
    background: rgba(0, 62, 156, 0.05);
}

.radio-text {
    font-size: 14px;
    color: #475569;
    transition: all 0.2s ease;
}

/* Botões */
.btn {
    width: 100%;
    padding: 13px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: #003E9C;
    color: white;
    margin-top: 8px;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background: #002b6f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 62, 156, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Form Switch */
.form-switch {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 16px;
}

.form-switch a {
    color: #003E9C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.form-switch a:hover {
    color: #002b6f;
    text-decoration: underline;
}

/* Mensagens */
.message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    display: none;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    display: block;
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 1200px) {
    .container {
        gap: 40px;
    }
    
    .chameleon-section {
        max-width: 400px;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column-reverse;
        max-width: 500px;
    }
    
    .login-section {
        max-width: 100%;
    }
    
    .chameleon-section {
        max-width: 350px;
    }
    
    .chameleon-circle {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .login-section {
        padding: 40px 32px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-description {
        font-size: 0.95rem;
    }
    
    .chameleon-section {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 35px 28px;
        border-radius: 18px;
    }
    
    .welcome-title {
        font-size: 1.4rem;
    }
    
    .welcome-description {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }
    
    .chameleon-section {
        max-width: 220px;
    }
    
    .form-container {
        padding: 30px 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
