/* ========== LOGIN VISION ========== */
:root {
    --azul-escuro: #0A2540;
    --azul-medio: #1E88E5;
    --branco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--azul-escuro) 0%, #0D3558 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Fundo animado com circuitos */
.bg-circuit {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='circuit' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='40' cy='40' r='1.2' fill='%231E88E5' opacity='0.15'/%3E%3Ccircle cx='20' cy='20' r='0.8' fill='%23ffffff' opacity='0.05'/%3E%3Cline x1='40' y1='40' x2='60' y2='40' stroke='%231E88E5' stroke-width='0.3' opacity='0.2'/%3E%3Cline x1='40' y1='40' x2='40' y2='60' stroke='%231E88E5' stroke-width='0.3' opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23circuit)'/%3E%3C/svg%3E");
    animation: drift 30s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

/* Card de login */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(10, 37, 64, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header img {
    height: 50px;
    margin-bottom: 0.5rem;
}

.login-header h1 {
    color: var(--azul-escuro);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.login-header p {
    color: #64748b;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Campos de entrada */
.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--azul-medio);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.15);
    background: #fff;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}

.input-icon:hover {
    color: var(--azul-medio);
}

/* Lembrar-me e esqueci senha */
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 1.5rem;
    font-size: 0.85rem;
}

.remember-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    cursor: pointer;
}

.remember-row a {
    color: var(--azul-medio);
    text-decoration: none;
    font-weight: 500;
}

.remember-row a:hover {
    text-decoration: underline;
}

/* Botão */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--azul-medio), #1565C0);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.btn-login:hover {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.6);
}

/* Mensagem de erro */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Links extras */
.extra-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.extra-links a {
    color: var(--azul-medio);
    text-decoration: none;
    font-weight: 500;
}

.extra-links a:hover {
    text-decoration: underline;
}

.separator {
    color: #ccc;
    margin: 0 10px;
}

/* Rodapé */
.login-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    z-index: 1;
}

/* Responsivo */
@media (max-width: 500px) {
    .login-card {
        margin: 20px;
        padding: 2rem 1.5rem;
    }
}