:root {
    --primary-color: #0a2540;
    --secondary-color: #ffcc00;
    --accent-color: #e63946;
    --success-color: #10b981;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-brand img {
    height: 55px;
}

.navbar-brand {
    color: #fff !important;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--secondary-color);
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
    left: 0;
}

.btn-login {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
    border-radius: 30px;
    padding: 6px 20px !important;
    margin: 0 5px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-login:hover {
    background: #fff;
    color: var(--primary-color) !important;
}

.btn-cadastro {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--primary-color) !important;
    font-weight: 700;
    border-radius: 30px;
    padding: 6px 20px !important;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-cadastro:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(10,37,64,0.9), rgba(230,57,70,0.7)),
                url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?w=1600') center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    padding: 80px 0;
}

.hero h1 {
    font-size: 4.5rem;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero .highlight {
    color: var(--secondary-color);
}

.hero p.lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.btn-hero {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 14px 40px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: var(--primary-color);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

/* ============================================
   CARDS
   ============================================ */
.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    border-top: 4px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-card .icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
    background: var(--primary-color);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #fff;
    text-align: center;
}

/* ============================================
   GALERIA
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,37,64,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ============================================
   FORMS
   ============================================ */
.form-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.form-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.form-card .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-card .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255,204,0,0.2);
}

.btn-submit {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    width: 100%;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #061a2e;
    color: #ccc;
    padding: 50px 0 20px;
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
    color: #fff;
}

.social-icons a:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================
   PÁGINAS FULLWIDTH (LOGIN / INSCRIÇÃO)
   ============================================ */
body.page-fullwidth {
    background: linear-gradient(135deg, var(--primary-color) 0%, #143a63 50%, var(--accent-color) 100%);
    min-height: 100vh;
}

body.page-fullwidth .navbar {
    background: rgba(10, 37, 64, 0.85) !important;
    backdrop-filter: blur(10px);
}

body.page-fullwidth footer {
    background: rgba(6, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

/* ============================================
   LOGIN
   ============================================ */
.login-page-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-card-custom {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUpLogin 0.6s ease-out;
    margin: 2rem auto;
}

@keyframes slideUpLogin {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header-custom {
    background: linear-gradient(135deg, var(--primary-color), #143a63);
    padding: 35px 30px;
    text-align: center;
}

.login-header-custom img {
    max-width: 140px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
}

.login-header-custom h2 {
    color: #fff;
    margin: 0;
    font-size: 2rem;
    text-transform: uppercase;
}

.login-header-custom p {
    color: rgba(255,255,255,0.8);
    margin: 8px 0 0 0;
    font-size: 0.95rem;
}

.login-body-custom {
    padding: 35px;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 20px;
}

.form-floating-custom .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 3;
}

.form-floating-custom .form-control {
    padding: 14px 15px 14px 48px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-floating-custom .form-control:focus {
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
    outline: none;
}

.btn-toggle-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 3;
}

.btn-toggle-senha:hover {
    background: rgba(10, 37, 64, 0.1);
    color: var(--accent-color);
}

.form-check-lembrar {
    display: flex;
    align-items: center;
    margin: 5px 0 20px;
}

.form-check-lembrar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-check-lembrar label {
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

.form-check-lembrar label i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.btn-acessar {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #143a63);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
    cursor: pointer;
}

.btn-acessar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 37, 64, 0.4);
    color: #fff;
}

.link-recuperar,
.link-inscrever {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-recuperar:hover,
.link-inscrever:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-footer-custom {
    background: #f8f9fa;
    padding: 18px;
    text-align: center;
    border-top: 1px solid #e1e8ed;
    font-size: 0.85rem;
    color: #777;
}

.login-body-custom .alert {
    border-radius: 12px;
    border: none;
    padding: 12px 18px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .login-body-custom { padding: 25px 20px; }
    .login-header-custom { padding: 25px 20px; }
    .login-header-custom h2 { font-size: 1.5rem; }
    .login-page-section { padding: 30px 0; }
}

/* ============================================
   INSCRIÇÃO
   ============================================ */
.inscricao-header {
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.inscricao-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.inscricao-header .lead {
    font-size: 1.2rem;
    opacity: 0.95;
}

.inscricao-section {
    padding: 3rem 0;
}

.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
    animation: slideUpInsc 0.5s ease-out;
}

@keyframes slideUpInsc {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #9ca3af;
    transition: all 0.3s;
}

.step.active {
    background: linear-gradient(135deg, var(--secondary-color), #f59e0b);
    color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.step.completed {
    background: var(--success-color);
    color: white;
}

.step-line {
    width: 60px;
    height: 3px;
    background: #e5e7eb;
    transition: all 0.3s;
}

.step-line.completed {
    background: var(--success-color);
}

.section-title-insc {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
}

.section-title-insc i {
    color: var(--secondary-color);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control.invalid {
    border-color: var(--accent-color);
}

.info-box {
    background-color: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-box.error {
    background-color: #fee2e2;
    border-left-color: var(--accent-color);
}

.info-box.error i {
    color: var(--accent-color);
}

.info-box i {
    color: #3b82f6;
    font-size: 1.8rem;
}

.age-display {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.password-requirements {
    font-size: 0.875rem;
    color: #6b7280;
    padding-left: 0;
    list-style: none;
}

.password-requirements li {
    margin-bottom: 0.4rem;
    transition: all 0.3s;
}

.password-requirements li.valid {
    color: var(--success-color);
    font-weight: 600;
}

.password-requirements li.invalid {
    color: #9ca3af;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f59e0b 100%);
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px;
    transition: all 0.3s;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    cursor: pointer;
    display: inline-block;
}

.btn-primary-custom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
    color: var(--primary-color);
}

.btn-primary-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden-section {
    display: none;
}

.fade-in {
    animation: fadeInInsc 0.5s ease-in;
}

@keyframes fadeInInsc {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-overlay .spinner-border {
    color: var(--secondary-color) !important;
    width: 4rem;
    height: 4rem;
}

.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.success-message i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .stat-number { font-size: 3rem; }
    .inscricao-header h1 { font-size: 2rem; }
    .form-container { padding: 1.5rem; }
    .step-line { width: 30px; }
}