:root {
    --primary-blue: #0066ff;
    --bg-gradient: linear-gradient(135deg, #051a2e 0%, #000814 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --accent-color: #00d2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #020b16;
    background: radial-gradient(circle at center, #0a2e36 0%, #020b16 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

/* Background & Map */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#map-container {
    position: relative;
    width: 85%;
    max-width: 1000px;
    height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    transition: opacity 1s ease;
}

#map-container svg {
    width: 100%;
    height: 100%;
    fill: rgba(0, 210, 255, 0.02);
    stroke: rgba(0, 210, 255, 0.3);
    stroke-width: 0.8;
    /* Optimized: Removed drop-shadow filter, using opacity for pulse instead */
    /* filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.15)); */
    animation: mapPulse 4s infinite alternate ease-in-out;
}

@keyframes mapPulse {
    0% { opacity: 0.6; stroke: rgba(0, 210, 255, 0.2); }
    100% { opacity: 0.9; stroke: rgba(0, 210, 255, 0.5); }
}

#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Login Wrapper */
.login-wrapper {
    z-index: 10;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    animation: fadeIn 1s ease-out;
}

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

.glass-card {
    background: rgba(18, 28, 45, 0.65);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Logo Placeholder */
.logo-placeholder {
    width: 100%;
    height: 80px; /* Espaço reservado para a logo */
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Borda temporária apenas para visualização, remova depois */
    /* border: 1px dashed rgba(255,255,255,0.1); */
}

.logo-placeholder img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Clock Styles - Agora com mais destaque */
.clock-container {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

#clock-time {
    font-size: 28px; /* Maior */
    font-weight: 300;
    letter-spacing: 2px;
}

#clock-date {
    font-size: 13px; /* Maior */
    text-transform: uppercase;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Removido .title pois não é mais usado */

/* Role Selector */
.role-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.role-btn {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

.role-btn:hover {
    color: #fff;
}

.role-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Form Elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    transition: color 0.3s;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-group input:focus {
    border-color: rgba(0, 210, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.input-group input:focus + i {
    color: var(--accent-color);
}

.btn-submit {
    padding: 14px;
    background: linear-gradient(135deg, #0061ff 0%, #00c6ff 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.6);
    filter: brightness(1.1);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Error Messages */
.error-message {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #ff6b6b;
    font-size: 13px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.error-message p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message i {
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }
    
    .logo-placeholder {
        height: 60px;
    }

    #clock-time {
        font-size: 24px;
    }
    
    #map-container {
        width: 95%;
        height: 50%;
    }
}
