@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0066FF;
    --primary-light: #4D94FF;
    --primary-dark: #004Cbf;
    --secondary: #00CC99; /* Verde Ciano / Saúde */
    --background: #F4F7FE;
    --surface: #FFFFFF;
    --text-main: #2B3674;
    --text-muted: #A3AED0;
    --danger: #EE5D50;
    --warning: #FFCE20;
    --success: #05CD99;
    --border: #E0E5F2;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0px 18px 40px rgba(112, 144, 176, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Util */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s all;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 204, 153, 0.3);
}

.btn-secondary:hover {
    background: #00b386;
    transform: translateY(-2px);
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* Navbar Pública */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i { /* Para ícones font-awesome se tiver */
    color: var(--secondary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Hero Section (Index/Home) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 0;
    background: radial-gradient(circle at top right, rgba(0, 204, 153, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(0, 102, 255, 0.1), transparent);
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    animation: float 6s ease-in-out infinite;
}

/* Auth Pages (Login/Register) */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F4F7FE 0%, #E0E5F2 100%);
    position: relative;
    overflow: hidden;
}

/* Bolhas de fundo para enfeitar logo no login */
.blob-1, .blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}
.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 102, 255, 0.2);
    top: -50px;
    left: -50px;
}
.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 204, 153, 0.2);
    bottom: -100px;
    right: -100px;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    z-index: 1;
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-error {
    background-color: rgba(238, 93, 80, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}
.alert-success {
    background-color: rgba(5, 205, 153, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none; /* Poderíamos adicionar um menu hamburger aqui depois */
    }
}
