:root {
    --primary: #2c3e50;
    --primary-light: #E1EEF5;
    --secondary: #1D1D1D;
    --background: #F4F1FF;
    --text: #1F2346;
    --error: #FF4444;
    --success: #00C851;
}

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

body {
    background: linear-gradient(135deg, #2c2b5e, #1b1a3c, #0e0d2b);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 500px;
}

.login-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    height: 535px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 100%;
}

#message-container {
    margin-bottom: 20px;
    min-height: 40px;
}

.message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.message.error {
    background-color: rgba(255, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.message.success {
    background-color: rgba(0, 200, 81, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.input-group {
    position: relative;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: black;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(73, 120, 240, 0.2);
}

.login-button {
    background: #34495e;
    color: #f8f9fa;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 35px;
}

.login-button:hover {
      background: #2c3e50;
}

.links {
    margin-top: -25px;
    font-size: 1.5rem;
    color: #b0b0c3;
}

h6 {
    display: block;
    font-size: 0.67em;
    margin-block-start: 2.33em;
    margin-block-end: 2.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.links a {
    color: #7575a5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.create-account {
    color: var(--primary);
    font-weight: 700;
}

/* Melhora a exibição de mensagens de erro */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.message.error {
    background-color: rgba(255, 68, 68, 0.1);
    color: #FF4444;
    border: 1px solid #FF4444;
}

.message.success {
    background-color: rgba(0, 200, 81, 0.1);
    color: #00C851;
    border: 1px solid #00C851;
}

/* Melhora a exibição dos campos do formulário */
.input-group {
    margin-top: 5px;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* Ajusta os links inferiores */
.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-footer a {
    color: #4978F0;
    text-decoration: none;
    font-size: 14px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Estilo para o ícone de mostrar/ocultar senha */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    z-index: 10;
}

.toggle-password:hover {
    color: #4978F0;
}

/* Ajuste no padding do input de senha para o ícone */
.input-group input[type="password"],
.input-group input[type="text"] {
    padding-right: 40px !important;
}

/* Posicionamento dos ícones */
.input-group {
    position: relative;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    z-index: 10;
}

.error-message {
    position: relative;
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.attempts-info {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.global-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s;
}

.global-notification.info {
    background-color: #2196F3;
}

.global-notification.warning {
    background-color: #ff9800;
}

.global-notification.error {
    background-color: #f44336;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        top: 0;
    }

    to {
        opacity: 1;
        top: 20px;
    }
}

 /* Estilos específicos para o modal de inicialização */
        .init-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        
        .init-modal.active {
            display: flex;
        }
        
        .init-modal-content {
            background: white;
            width: 90%;
            max-width: 600px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .init-modal-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
        }
        
        .init-modal-header h3 {
            margin: 0;
            font-size: 22px;
        }
        
        .init-modal-header p {
            margin: 5px 0 0 0;
            opacity: 0.9;
        }
        
        .btn-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        
        .btn-close:hover {
            background: rgba(255,255,255,0.3);
        }
        
        #initProgress {
            padding: 20px;
        }
        
        .progress-container {
            margin: 20px 0;
        }
        
        .progress-bar {
            width: 100%;
            height: 10px;
            background: #f0f0f0;
            border-radius: 5px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #4CAF50, #8BC34A);
            width: 0%;
            transition: width 0.5s ease;
            border-radius: 5px;
        }
        
        .progress-text {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            font-size: 14px;
            color: #666;
        }
        
        .table-status {
            max-height: 200px;
            overflow-y: auto;
            margin: 20px 0;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 5px;
            border: 1px solid #eee;
        }
        
        .table-item {
            padding: 8px 10px;
            border-bottom: 1px solid #eee;
            font-size: 13px;
        }
        
        .table-item:last-child {
            border-bottom: none;
        }
        
        .table-item.success {
            color: #28a745;
        }
        
        .table-item.error {
            color: #dc3545;
        }
        
        .table-item.processing {
            color: #007bff;
        }
        
        .table-item.info {
            color: #17a2b8;
        }
        
        .table-item.warning {
            color: #ffc107;
        }
        
        .init-error {
            display: none;
            padding: 20px;
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 5px;
            margin: 20px;
            color: #856404;
        }
        
        .init-error.show {
            display: block;
        }
        
        .init-error h4 {
            margin-top: 0;
            color: #856404;
        }
        
        .modal-buttons {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: #007bff;
            color: white;
        }
        
        .btn-primary:hover {
            background: #0056b3;
        }
        
        .btn-secondary {
            background: #6c757d;
            color: white;
        }
        
        .btn-secondary:hover {
            background: #545b62;
        }
        
        .btn-success {
            background: #28a745;
            color: white;
        }
        
        .btn-success:hover {
            background: #1e7e34;
        }
        
        .final-report {
            margin-top: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 5px;
            border: 1px solid #dee2e6;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* Notificação global */
        .global-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 5px;
            color: white;
            z-index: 10000;
            display: none;
            animation: slideIn 0.3s ease;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        .global-notification.info {
            background: #17a2b8;
        }
        
        .global-notification.success {
            background: #28a745;
        }
        
        .global-notification.warning {
            background: #ffc107;
            color: #212529;
        }
        
        .global-notification.error {
            background: #dc3545;
        }
/* Responsividade */
@media (max-width: 600px) {
    .login-card {
        padding: 30px 20px;
    }

    .form-footer {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .input-group input {
        padding: 12px 12px 12px 40px;
    }

    .input-group .icon {
        font-size: 14px;
        left: 12px;
    }
}