/* ========================== */
/* ESTILO MODERNO - TELA DE LOGIN */
/* ========================== */
:root {
    --primary-color: #1A237E;
    --primary-dark: #0D1A63;
    --text-color: #333;
    --input-bg: #f9f9f9;
    --input-border: #ccc;
    --input-focus: #3f51b5;
    --error-color: #f44336;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.55);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 100%;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.login-image {
    height: 60px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 14px;
}

.input-group i {
    margin-right: 6px;
}

.input-group input {
    padding: 12px 14px;
    width: 100%;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    font-size: 15px;
    transition: all 0.3s ease;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.input-group input:focus {
    outline: none;
    border-color: var(--input-focus);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15);
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(26, 35, 126, 0.3);
    margin-top: 5px;
}

.login-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0b174a);
    transform: translateY(-1px);
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.register-link {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: #2b2b2b;
}

.register-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #146c5a;
    text-decoration: underline;
}

  /* Centraliza o bloco dentro do conteúdo */
  .remember-cred {
    display: flex;
    justify-content: center;  /* centraliza na largura do container/página */
  }

  /* Mantém checkbox à esquerda e texto à direita */
  .remember-cred > label {
    display: flex;
    align-items: center;      /* alinhado verticalmente, sem “subir/descer” */
    gap: 8px;                 /* espaço entre checkbox e texto */
    margin: 0;
    cursor: pointer;
    user-select: none;
  }

  /* (Opcional) tamanho/cor do checkbox */
  .remember-cred input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1f2f6e;    /* ajuste para a cor do seu tema */
  }

/* Responsividade Mobile */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .input-group input {
        font-size: 14px;
    }

    .login-button {
        font-size: 15px;
    }

    .register-link {
        font-size: 13px;
    }
}

/* Animação leve */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}