:root {
    /* Devolvendo suas cores e gradientes! */
    --primary: #0099FF; 
    --primary-hover: #007BFF;
    --primary-gradient: linear-gradient(135deg, #0099FF 0%, #00C6FF 100%);
    --primary-light: rgba(0, 153, 255, 0.08);
    
    --bg-main: #F0F4F8; 
    --bg-surface: #FFFFFF;
    --bg-input: #F8FAFC;
    
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    
    --error: #EF4444;
    --error-bg: #FEF2F2;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-premium: 0 20px 40px rgba(0, 30, 60, 0.06);
    --shadow-glow: 0 8px 25px rgba(0, 153, 255, 0.25);
    --focus-ring: rgba(0, 153, 255, 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    /* Fundo sutilmente colorido devolvido */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 153, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 153, 255, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header com o gradiente original */
.main-header {
    background: var(--primary-gradient);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 153, 255, 0.15);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
    /* Adicionando um brilho no logo branco para destacar no header azul */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-img:hover {
    transform: scale(1.02);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #FFFFFF;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Layout Principal */
.main-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    padding: 80px 24px;
    align-items: center;
    min-height: calc(100vh - 64px - 200px);
}

/* Textos da Esquerda */
.info-section .text-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    color: #0B1120;
    letter-spacing: -1px;
}

.info-section .text-content p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
}

/* Cartão de Login */
.login-card {
    background: var(--bg-surface);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-premium);
    position: relative;
}

/* A barra colorida no topo do cartão voltou! */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

.login-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

/* Alertas */
.alert-error-form {
    background-color: var(--error-bg);
    color: var(--error);
    border: 1px solid #FCA5A5;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

/* Formulários com um toque de azul no hover/focus */
.form-haamigoos .form-group {
    margin-bottom: 24px;
}

.form-haamigoos label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #334155;
}

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

.input-wrapper input,
.form-haamigoos select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    background-color: var(--bg-input);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.input-wrapper input:hover,
.form-haamigoos select:hover {
    background-color: #F1F5F9;
}

.input-wrapper input:focus,
.form-haamigoos select:focus {
    background-color: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
    outline: none;
}

.form-haamigoos select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary);
}

.forgot-link {
    display: inline-block;
    font-size: 13.5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* O botão com o seu degradê brilhante */
.btn-submit {
    width: 100%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 153, 255, 0.35);
    filter: brightness(1.05);
}

.btn-submit:active {
    transform: scale(0.98);
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

.login-footer a, .terms a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer a:hover, .terms a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Footer elegante, mas mantendo a vivacidade nas redes sociais */
.main-footer {
    background: transparent;
    padding: 64px 0 32px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.logo-img-footer {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-img-footer:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-brand p {
    max-width: 300px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    display: inline-block;
    margin-bottom: 12px;
    transition: color 0.2s, transform 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* As cores das redes sociais voltaram! */
.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-icons a:hover {
    transform: translateY(-4px);
}

.social-yt:hover { background: #FF0000; color: #fff; box-shadow: 0 8px 16px rgba(255, 0, 0, 0.2); }
.social-in:hover { background: #0077B5; color: #fff; box-shadow: 0 8px 16px rgba(0, 119, 181, 0.2); }
.social-ig:hover { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(220, 39, 67, 0.2);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modal refinado */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-surface);
    padding: 40px 48px;
    border-radius: 20px;
    width: 90%;
    max-width: 540px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-premium);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-input);
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #E2E8F0;
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dob-group {
    display: flex;
    gap: 12px;
}

.terms {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 24px;
}

/* Responsividade */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 24px;
    }
    .info-section {
        order: 2;
        text-align: center;
    }
    .info-section .text-content p {
        margin: 0 auto;
    }
    .login-section {
        order: 1;
    }
    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }
    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .login-card, .modal-content {
        padding: 32px 24px;
    }
    .info-section .text-content h1 {
        font-size: 36px;
    }
}