/* =========================================
   haamigoos - Design Original (Modern UI)
   ========================================= */
   :root {
    /* Identidade haamigoos */
    --brand-primary: #0EA5E9; /* Azul vibrante e alegre */
    --brand-hover: #0284C7;
    --brand-gradient: linear-gradient(135deg, #0EA5E9 0%, #8B5CF6 50%, #EC4899 100%);
    
    /* Superfícies e Fundos */
    --bg-body: #F8FAFC; /* Fundo off-white macio */
    --surface-card: #FFFFFF;
    --input-bg: #F1F5F9; /* Fundo do input inativo */
    --input-border: #E2E8F0;
    
    /* Tipografia */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --font-brand: 'Outfit', sans-serif;
    --font-ui: 'Plus Jakarta Sans', sans-serif; /* Fonte super moderna para UI */
    
    /* Sombras (Efeito Glass/Soft) */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-focus: 0 0 0 4px rgba(14, 165, 233, 0.15); /* Anel de foco "Dopamina" */
    --shadow-modal: 0 20px 40px -10px rgba(0,0,0,0.15);
    
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-ui);
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

a { color: var(--brand-primary); text-decoration: none; font-weight: 600; transition: color var(--transition-smooth); }
a:hover { color: var(--brand-hover); }

/* =========================================
   Botões (Ação e Dopamina)
   ========================================= */
.btn {
    font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
    padding: 12px 28px; border-radius: 12px; /* Curvatura amigável */
    border: none; cursor: pointer; transition: all var(--transition-smooth);
    display: inline-flex; align-items: center; justify-content: center;
}

.btn-full { width: 100%; }

.btn-primary { background-color: var(--text-primary); color: white; }
.btn-primary:hover { background-color: #000000; transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-gradient {
    background: var(--brand-gradient); background-size: 200% 200%;
    color: white; animation: gradientShift 6s ease infinite;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(139, 92, 246, 0.2); }

.btn-text { background: transparent; color: var(--text-secondary); }
.btn-text:hover { background-color: var(--input-bg); color: var(--text-primary); }

.btn-icon {
    background: transparent; border: none; font-size: 1.5rem;
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; color: var(--text-secondary); transition: background 0.2s;
}
.btn-icon:hover { background-color: var(--input-bg); color: var(--text-primary); }

/* Ripple Effect Original */
.ripple { position: relative; overflow: hidden; }
.ripple::after {
    content: ""; position: absolute; background: rgba(255,255,255,0.25);
    border-radius: 50%; width: 100px; height: 100px;
    top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
    opacity: 0; pointer-events: none;
}
.ripple:active::after { transform: translate(-50%, -50%) scale(3); opacity: 1; transition: 0s; }

/* =========================================
   Header
   ========================================= */
.navbar { padding: 20px 0; position: sticky; top: 0; z-index: 10; background: rgba(248, 250, 252, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.03); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo-haamigoos {
    font-family: var(--font-brand); font-size: 2rem; font-weight: 700;
    background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* =========================================
   Hero Section
   ========================================= */
.main-content { display: flex; flex: 1; align-items: center; gap: 80px; padding: 60px 24px; }
.hero-section { flex: 1; position: relative; }

.hero-title { font-family: var(--font-brand); font-size: 4rem; line-height: 1.1; margin-bottom: 24px; color: var(--text-primary); letter-spacing: -1px; }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); line-height: 1.6; max-width: 90%; font-weight: 400; }

.ambient-glow {
    position: absolute; top: 10%; left: -10%; width: 300px; height: 300px;
    background: var(--brand-gradient); filter: blur(80px); opacity: 0.15;
    border-radius: 50%; animation: pulse 6s infinite alternate; z-index: -1; pointer-events: none;
}

/* =========================================
   FORMULÁRIOS ORIGINAIS (Adeus Material Design)
   ========================================= */
.login-section { width: 100%; max-width: 420px; }
.glass-card {
    background: var(--surface-card); border-radius: 24px;
    padding: 48px 40px; box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
}

.card-header { text-align: left; margin-bottom: 32px; }
.card-header h3 { font-family: var(--font-brand); font-size: 1.75rem; font-weight: 700; color: var(--text-primary); }
.card-header p { color: var(--text-secondary); margin-top: 6px; font-size: 1rem; }

/* O Novo Input " haamigoos " */
.input-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.input-group label {
    font-size: 0.875rem; font-weight: 600; color: var(--text-primary);
    margin-bottom: 8px; margin-left: 4px; transition: color var(--transition-smooth);
}
.input-group input {
    width: 100%; padding: 14px 16px;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 12px; /* Design moderno de pílula arredondada */
    font-size: 1rem; font-family: var(--font-ui); color: var(--text-primary);
    transition: all var(--transition-smooth); outline: none;
}
.input-group input::placeholder { color: #94A3B8; font-weight: 400; }

/* Animação de Foco do Input (Efeito Premium) */
.input-group input:focus {
    background-color: var(--surface-card);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-focus); /* O anel de dopamina */
}
.input-group input:focus + label { color: var(--brand-primary); }

.form-options { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.link-forgot { font-size: 0.875rem; color: var(--text-secondary); }
.link-forgot:hover { color: var(--brand-primary); }

/* =========================================
   Modal de Cadastro
   ========================================= */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
    opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s ease;
}

.modal-surface {
    background: var(--surface-card); width: 100%; max-width: 520px;
    border-radius: 28px; box-shadow: var(--shadow-modal);
    display: flex; flex-direction: column; max-height: 90vh;
    transform: scale(0.95) translateY(20px); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop.show .modal-surface { transform: scale(1) translateY(0); }

.modal-header { padding: 32px 32px 24px; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-title { font-family: var(--font-brand); font-size: 1.5rem; font-weight: 700; }
.modal-subtitle { color: var(--text-secondary); margin-top: 4px; font-size: 0.95rem; }

.modal-body { padding: 0 32px 32px; overflow-y: auto; }

.input-row { display: flex; gap: 16px; }
.input-row .input-group { flex: 1; }

/* Selects Personalizados */
.select-row { display: flex; gap: 12px; }
.custom-select {
    flex: 1; padding: 14px 16px; background-color: var(--input-bg);
    border: 1px solid transparent; border-radius: 12px;
    font-size: 1rem; font-family: var(--font-ui); color: var(--text-primary);
    cursor: pointer; outline: none; transition: all var(--transition-smooth);
    appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' 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 12px center; background-size: 16px;
}
.custom-select:focus { background-color: var(--surface-card); border-color: var(--brand-primary); box-shadow: var(--shadow-focus); }
.full-width { width: 100%; }

/* Checkbox Moderno */
.terms-container { margin: 24px 0; }
.custom-checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
    height: 20px; width: 20px; background-color: var(--input-bg); border-radius: 6px;
    border: 1px solid var(--input-border); transition: all 0.2s; flex-shrink: 0; margin-top: 2px;
}
.custom-checkbox:hover input ~ .checkmark { border-color: var(--brand-primary); }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.checkmark:after {
    content: ""; position: absolute; display: none;
    left: 7px; top: 5px; width: 4px; height: 9px; border: solid white;
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.terms-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }

.modal-footer { margin-top: 8px; }
.right-align { display: flex; justify-content: flex-end; gap: 12px; }

/* =========================================
   Footer
   ========================================= */
.footer { background: transparent; padding: 40px 0 24px; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; }
.footer-copy { font-size: 0.875rem; color: var(--text-secondary); }

/* Animações e Mobile */
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pulse { from { transform: scale(1); opacity: 0.15; } to { transform: scale(1.1); opacity: 0.25; } }

@media (max-width: 900px) {
    .main-content { flex-direction: column; text-align: center; gap: 40px; padding: 40px 24px; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { max-width: 100%; margin: 0 auto; }
    .card-header { text-align: center; }
    .input-row { flex-direction: column; gap: 0; }
    .footer-content { flex-direction: column; justify-content: center; text-align: center; }
}