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

/* Scrollbar personalizada - bonita e discreta */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Modo escuro para página de login */
body.dark-mode,
html.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
}

body.dark-mode .login-container,
html.dark-mode .login-container {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .login-header,
html.dark-mode .login-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

body.dark-mode .form-group label,
html.dark-mode .form-group label {
    color: #cbd5e1 !important;
}

body.dark-mode .form-input,
html.dark-mode .form-input {
    background: #334155 !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

body.dark-mode .form-input:focus,
html.dark-mode .form-input:focus {
    background: #475569 !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .form-input::placeholder,
html.dark-mode .form-input::placeholder {
    color: #94a3b8 !important;
}

body.dark-mode .input-icon,
html.dark-mode .input-icon {
    color: #94a3b8 !important;
}

body.dark-mode .form-input:focus + .input-icon,
html.dark-mode .form-input:focus + .input-icon {
    color: #3b82f6 !important;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    overflow: visible;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 10;
    margin: 40px auto;
}

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

.login-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.login-header .logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.login-header .logo:hover {
    transform: scale(1.05);
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    display: none;
}

.login-header p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 10px;
}

.restricted-access {
    font-size: 13px !important;
    font-weight: 600 !important;
    opacity: 0.85 !important;
    margin-top: 8px !important;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.3s ease;
}

.form-input:focus + .input-icon {
    color: #3b82f6;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

.error-icon {
    font-size: 16px;
}

@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .login-header {
        padding: 30px 20px 15px;
    }
    
    .login-header .logo {
        max-width: 150px;
        margin-bottom: 10px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .form-input {
        padding: 14px 16px;
    }
    
    .login-button {
        padding: 14px;
    }
}

.login-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    animation: floatIcon 10s ease-in-out infinite;
    opacity: 0.3 !important;
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
}

.floating-icon:nth-child(odd) {
    animation-direction: reverse;
    animation-duration: 12s;
}

.floating-icon:nth-child(even) {
    animation-delay: -2s;
}

.floating-icon:nth-child(3n) {
    animation-duration: 8s;
    animation-delay: -4s;
}

.floating-icon.instagram {
    color: rgba(225, 48, 108, 0.4) !important;
    text-shadow: 0 0 15px rgba(225, 48, 108, 0.3);
}

.floating-icon.heart {
    color: rgba(255, 77, 77, 0.4) !important;
    text-shadow: 0 0 12px rgba(255, 77, 77, 0.3);
}

.floating-icon.camera {
    color: rgba(255, 255, 255, 0.35) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.floating-icon.message {
    color: rgba(59, 130, 246, 0.4) !important;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.floating-icon.story {
    color: rgba(255, 193, 7, 0.4) !important;
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
}

.floating-icon.video {
    color: rgba(156, 39, 176, 0.4) !important;
    text-shadow: 0 0 12px rgba(156, 39, 176, 0.3);
}

.floating-icon.comment {
    color: rgba(76, 175, 80, 0.4) !important;
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

.floating-icon.save {
    color: rgba(255, 152, 0, 0.4) !important;
    text-shadow: 0 0 12px rgba(255, 152, 0, 0.3);
}

.floating-icon.share {
    color: rgba(96, 125, 139, 0.4) !important;
    text-shadow: 0 0 12px rgba(96, 125, 139, 0.3);
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    20% {
        transform: translateY(-25px) translateX(15px) rotate(72deg) scale(1.1);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-10px) translateX(-20px) rotate(144deg) scale(0.9);
        opacity: 0.4;
    }
    60% {
        transform: translateY(-35px) translateX(8px) rotate(216deg) scale(1.2);
        opacity: 0.6;
    }
    80% {
        transform: translateY(-15px) translateX(-12px) rotate(288deg) scale(0.8);
        opacity: 0.35;
    }
}

@keyframes floatIcon2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-40px) translateX(-25px) rotate(120deg) scale(1.3);
        opacity: 0.5;
    }
    66% {
        transform: translateY(-20px) translateX(30px) rotate(240deg) scale(0.7);
        opacity: 0.4;
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

.form-input:focus-visible,
.login-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ============================================
   SISTEMA DE RASTREAMENTO
   ============================================ */

.tracking-system {
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Alerta de Proteção */
.protection-alert {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: rgba(34, 197, 94, 0.298) 0px 0px 0px 0.0657723px;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: rgba(34, 197, 94, 0.298) 0px 0px 0px 0.0657723px;
        border-color: rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: rgba(34, 197, 94, 0.4) 0px 0px 15px 2px;
        border-color: rgba(34, 197, 94, 0.35);
    }
}

.alert-icon {
        font-size: 20px;
    }
    
.alert-text {
    font-size: 13px;
    font-weight: 600;
    color: #047857;
    flex: 1;
}

/* Card de Monitoramento */
.monitoring-box {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(220, 38, 38, 0.298) 0px 0px 0px 0.0657723px;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0%, 100% {
        box-shadow: rgba(220, 38, 38, 0.298) 0px 0px 0px 0.0657723px;
        border-color: rgba(220, 38, 38, 0.2);
    }
    50% {
        box-shadow: rgba(220, 38, 38, 0.4) 0px 0px 15px 2px;
        border-color: rgba(220, 38, 38, 0.35);
    }
}

.monitoring-title {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.eye-icon {
    font-size: 16px;
}

.title-text {
        font-size: 13px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.monitoring-data {
    padding: 16px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(253, 164, 175, 0.12);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-size: 13px;
    font-weight: 600;
    color: #e11d48;
}

.data-value {
    font-size: 13px;
    font-weight: 500;
    color: #be123c;
    text-align: right;
    max-width: 65%;
    word-break: break-word;
}

.session-code {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    font-size: 12px;
}

.blurred-data {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    font-size: 14px;
    color: #991b1b !important;
    filter: blur(3px);
    user-select: none;
    cursor: not-allowed;
    opacity: 0.8;
}
    
/* Responsivo - Mobile */
@media (max-width: 480px) {
    .tracking-system {
        margin-top: 15px;
    }
    
    .protection-alert {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .alert-icon {
        font-size: 18px;
    }
    
    .alert-text {
        font-size: 12px;
    }
    
    .monitoring-title {
        padding: 8px 12px;
    }
    
    .title-text {
        font-size: 12px;
    }
    
    .monitoring-data {
        padding: 12px;
    }
    
    .data-row {
        padding: 6px 0;
        flex-direction: column;
        gap: 2px;
    }
    
    .data-label,
    .data-value {
        font-size: 12px;
        text-align: left;
        max-width: 100%;
    }
    
    .session-code {
        font-size: 11px;
    }
}

/* Checkbox "Lembrar-me" */
.remember-me-group {
    margin: 15px 0;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.remember-me-label:hover .checkmark {
    border-color: #3b82f6;
    background: #f8fafc;
}

.remember-me-label input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.remember-me-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-text {
    font-weight: 500;
    color: #374151;
}

.remember-me-label:hover .remember-text {
    color: #3b82f6;
}

/* Responsividade para checkbox */
@media (max-width: 480px) {
    .remember-me-label {
        font-size: 13px;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
    }
}
