/* CSS variables removed - using global.css variables for consistency */

/* Sync Status Indicator Styles */
.sync-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.sync-indicator.online {
    background: #d4edda;
    color: #155724;
}

.sync-indicator.offline {
    background: #f8d7da;
    color: #721c24;
}

.sync-indicator.pending {
    background: #fff3cd;
    color: #856404;
}

.sync-indicator i {
    font-size: 16px;
}

/* Sync Status in Header - Top Right Corner */
.sync-status, .sync-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #6c757d;
    cursor: help;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
    /* Position in top right corner */
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

.sync-status.synced, .sync-circle.synced {
    background: #28a745;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.3);
    opacity: 0.8;
}

.sync-status.offline, .sync-circle.offline {
    background: #dc3545;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.3);
    opacity: 0.8;
}

.sync-status.pending, .sync-circle.pending {
    background: #ffc107;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.3);
    opacity: 0.8;
}

.sync-status.syncing, .sync-circle.syncing {
    background: #007bff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
    animation: syncPulse 1.5s ease-in-out infinite;
    opacity: 0.9;
}

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

/* Native browser tooltip only - less intrusive for circular indicator
.sync-status::after, .sync-circle::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.sync-status:hover::after, .sync-circle:hover::after {
    opacity: 1;
}
*/

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

.sync-indicator.pending i {
    animation: spin 2s linear infinite;
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Header styles removed - using global.css styles for consistency */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 55, 135, 0.3), rgba(0, 55, 135, 0.7));
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.content-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.center-text {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    padding: 0 20px;
}

.center-text img {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: pulse 3s infinite ease-in-out;
}

/* Estilo para o novo título (substituindo o <p>) */
.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideUp 1s forwards 0.8s;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Login Animation */
.login-animation {
    position: fixed;
    z-index: 1999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}

.login-animation.active {
    display: flex;
}

.logo-animation-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-animated {
    width: 150px;
    height: auto;
    position: relative;
    z-index: 10;
    transform: scale(1);
}

/* Removendo o CSS das rodas girando */
.spinning-wheels {
    display: none; /* Oculta as rodas */
}

.wheel {
    display: none; /* Oculta as rodas */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modificação na animação de pulso do logotipo */
@keyframes logoPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    30% {
        filter: brightness(1.3);
    }

    60% {
        filter: brightness(1);
    }

    80% {
        filter: brightness(1.2);
    }

    100% {
        transform: scale(1.5);
        filter: brightness(1.5);
        opacity: 0;
    }
}

.logo-pulse {
    animation: logoPulse 1.5s ease-in-out forwards;
}

.energy-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px 0 var(--accent);
    opacity: 0;
    transform: scale(0.8);
}

@keyframes energyExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    80% {
        transform: scale(1.6);
        opacity: 0.4;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Media queries para responsividade */
@media (max-width: 991px) {
    .hero {
        height: 100vh;
    }
}

/* Navigation responsive styles removed - using global.css styles for consistency */

@media (max-width: 600px) {
    /* Sync indicator responsive positioning - avoid menu toggle */
    .sync-status, .sync-circle {
        top: 12px;
        right: 60px; /* Move left to avoid menu toggle */
    }
}

/* Navigation responsive styles for 480px removed - using global.css styles for consistency */

/* Media queries para responsividade do formulário de login */
@media (max-width: 768px) {
    .login-html {
        padding: 30px 30px 20px 30px; /* Reduz ainda mais o padding */
    }
}

@media (max-width: 480px) {
    .login-html {
        padding: 25px 15px 15px 15px; /* Padding mínimo para telas pequenas */
    }
    
    .login-html .tab {
        font-size: 16px; /* Fonte ainda menor */
    }
    
    .hr {
        margin: 20px 0 15px 0; /* Margens mínimas */
    }
    
    .login-form .group .input,
    .login-form .group .button {
        padding: 10px; /* Padding menor para os inputs */
    }
    
    .login-form .group {
        margin-bottom: 10px; /* Espaço menor entre campos */
    }
}

/* Ajustes para o modal e responsividade */
.modal-content {
    background-color: transparent;
    max-width: 525px;
    padding: 0;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #28a745;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #28a745;
}

.close-modal:hover {
    transform: scale(1.1);
    background: #28a745;
    color: white;
}

/* Media queries para responsividade do formulário de login */
@media (max-width: 768px) {
    .login-wrap {
        max-width: 100%;
        min-height: 600px;
    }
    
    .login-html {
        padding: 60px 40px 30px 40px;
    }
}

@media (max-width: 480px) {
    .login-html {
        padding: 40px 20px 20px 20px;
    }
    
    .login-html .tab {
        font-size: 18px;
        margin-right: 10px;
    }
    
    .hr {
        margin: 30px 0 25px 0;
    }
    
    .login-form .group .input,
    .login-form .group .button {
        padding: 12px 15px;
    }
}

@media (max-height: 700px) {
    .login-wrap {
        min-height: 520px;
    }
    
    .login-form {
        min-height: 300px;
    }
    
    .hr {
        margin: 30px 0 25px 0;
    }
}

/* Efeito de transição para as abas do login */
.login-html .tab {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-html .tab:hover {
    color: #fff;
    transform: translateY(-3px);
    text-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.login-html .tab::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1161ee;
    transition: width 0.3s ease;
}

.login-html .tab:hover::after {
    width: 100%;
}

.login-html .sign-in:checked + .tab,
.login-html .sign-up:checked + .tab {
    color: #fff;
    border-color: transparent;
}

.login-html .sign-in:checked + .tab::after,
.login-html .sign-up:checked + .tab::after {
    width: 100%;
    background-color: #1161ee;
}

.login-html .sign-in-htm,
.login-html .sign-up-htm {
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.login-html .sign-in:checked + .tab + .sign-up + .tab + .login-form .sign-in-htm,
.login-html .sign-up:checked + .tab + .login-form .sign-up-htm {
    transform: rotate(0);
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

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

/* Ajustando a velocidade das transições */
.login-html .tab {
    transition: all 0.8s ease; /* Transição mais lenta */
}

.login-html .tab::after {
    transition: width 0.8s ease; /* Transição mais lenta */
}

.login-html .sign-in-htm,
.login-html .sign-up-htm {
    transition: transform 1s ease, opacity 1s ease; /* Transição mais lenta */
}

.login-html .sign-in:checked + .tab + .sign-up + .tab + .login-form .sign-in-htm,
.login-html .sign-up:checked + .tab + .login-form .sign-up-htm {
    animation: fadeIn 1.2s ease forwards; /* Animação mais lenta */
}

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

.sign-in-htm .additional-space {
    height: 100px; /* Espaço adicional para igualar o tamanho das abas */
    width: 100%;
}

/* Modal Login - Enhanced Popup */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: transparent;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #28a745;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #28a745;
}

.close-modal:hover {
    transform: scale(1.1);
    background: #28a745;
    color: white;
}

/* Enhanced Login Card Styles */
.login-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid #28a745;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
    pointer-events: none;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.card-header .log {
    margin: 0;
    font-size: 42px;
    color: #28a745;
    font-weight: 700;
    text-shadow: none;
    font-family: 'Font Awesome 6 Free', 'Segoe UI', sans-serif;
}

.card-header .log::before {
    content: '\f2bd';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    color: #28a745;
    filter: none;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.login-card label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #28a745;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-card input[type="text"], 
.login-card input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

.login-card input[type="text"]::placeholder,
.login-card input[type="password"]::placeholder {
    color: #999;
}

.login-card input[type="text"]:focus, 
.login-card input[type="password"]:focus {
    outline: none;
    border-color: #28a745;
    background: #f8f9fa;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.2);
}

.login-card input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    margin: 20px 0 0 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.login-card input[type="submit"]:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.login-card input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* Alert styles for the modal */
.alert {
    padding: 12px 15px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments for popup */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .card-header .log {
        font-size: 24px;
    }
}