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

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #f1f3f6 0%, #e5e7eb 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

header {
    background: #02416D;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.container-login {
    
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.cartao-login {
    margin-top: 20px;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideUp 0.5s ease;
}

.cabecalho-login {
    text-align: center;
    margin-bottom: 30px;
}

.cabecalho-login h1 {
    font-size: 1.8rem;
    color: #02416D;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cabecalho-login p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.mensagem-erro {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.mensagem-erro ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mensagem-erro li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mensagem-erro li:before {
    content: "⚠️";
    font-size: 0.9rem;
}

.formulario-login .grupo-formulario {
    margin-bottom: 20px;
}

.formulario-login label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.formulario-login input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.formulario-login input:focus {
    border-color: #02416D;
    background: white;
    box-shadow: 0 0 0 3px rgba(2, 65, 109, 0.1);
    outline: none;
}

.formulario-login input::placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* BOTÕES */
.botao-login {
    width: 100%;
    background: #02416D;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.botao-login:hover {
    background: #0268A6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 104, 166, 0.2);
}

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

.botao-voltar {
    display: block;
    text-align: center;
    color: #02416D;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 10px;
    border-radius: 6px;
    background: #f0f9ff;
    font-size: 0.95rem;
}

.botao-voltar:hover {
    color: #0268A6;
    background: #e0f2fe;
    text-decoration: none;
}

.botao-voltar i {
    margin-right: 8px;
}

.rodape-login {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rodape-login p {
    margin-bottom: 5px;
}

.credenciais-teste {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
    font-size: 0.9rem;
}

.credenciais-teste h3 {
    color: #02416D;
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.credenciais-teste p {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.4;
}

.credenciais-teste code {
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #075985;
    font-size: 0.9rem;
}

.credenciais-teste small {
    color: #6b7280;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

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

body.dark-theme {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #e5e7eb;
}

body.dark-theme .cartao-login {
    background: #1f2937;
    color: #e5e7eb;
}

body.dark-theme .formulario-login input {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark-theme .formulario-login input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body.dark-theme .formulario-login label {
    color: #d1d5db;
}

body.dark-theme .botao-voltar {
    background: #1e3a8a;
    color: #93c5fd;
}

body.dark-theme .botao-voltar:hover {
    background: #1e40af;
    color: #bfdbfe;
}

body.dark-theme .credenciais-teste {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #dbeafe;
}

body.dark-theme .credenciais-teste h3 {
    color: #93c5fd;
}

body.dark-theme .credenciais-teste code {
    background: #1e40af;
    color: #bfdbfe;
}

body.dark-theme .rodape-login {
    border-top-color: #374151;
    color: #9ca3af;
}

body.dark-theme .mensagem-erro {
    background: #7f1d1d;
    color: #fecaca;
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .cartao-login {
        padding: 25px 20px;
    }
    
    .cabecalho-login h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .cabecalho-login p {
        font-size: 0.9rem;
    }
    
    .formulario-login input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .botao-login {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .credenciais-teste {
        padding: 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 350px) {
    .cartao-login {
        padding: 20px 15px;
    }
    
    .cabecalho-login h1 {
        font-size: 1.3rem;
    }
    
    .cabecalho-login p {
        font-size: 0.85rem;
    }
}