/* Importa fonte */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

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

body, html {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background: #f0f2f5;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER TOPO ===== */
.header-topo {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  flex-shrink: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-empresa {
  height: 46px;
}

.empresa-contato {
  text-align: right;
  font-size: 14px;
  color: #333;
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .empresa-contato {
    text-align: left;
  }
}

/* ===== LOGIN ===== */
.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  padding: 40px 30px;
  position: relative;
  animation: fadeInUp 0.8s ease both;
}

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

.logo {
  display: block;
  margin: 0 auto 30px;
  max-height: 100px;
  width: auto;
}

.login-card h2 {
  color: #0A083A;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color .3s;
}

.form-group input:focus {
  border-color: #0A083A;
  outline: none;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.options label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.options input[type="checkbox"] {
  margin-right: 6px;
}

.options a {
  color: #0A083A;
  text-decoration: none;
  transition: opacity .3s;
}

.options a:hover {
  opacity: .7;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #0A083A;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .3s;
}

.btn-login:hover {
  background: #08062e;
}

/* Ajuste para telas pequenas */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
}

div:has(> #id_sc_field_remember_me_1) {
  display: flex;
}
