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

body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #1f5f8d 0%, #2f7eb6 55%, #5aa8da 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container-login,
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  width: 100%;
  max-width: 440px;
  padding: 36px;
}

h1 { font-size: 24px; margin-bottom: 8px; color: #1f2937; }
.subtitle { color: #6b7280; margin-bottom: 18px; font-size: 14px; }

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
}

.form-input,
.input,
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 12px;
}

.logo-area {
  margin-bottom: 14px;
}

.logo {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.logo-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  margin-bottom: 0;
}

.password-toggle {
  position: relative;
}

.password-input-wrap {
  position: relative;
}

.password-toggle input {
  padding-right: 44px;
  margin-bottom: 0;
}

.toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toggle-btn svg {
  width: 18px;
  height: 18px;
}

.toggle-btn .icon-eye-closed { display: none; }
.toggle-btn[data-visible="true"] .icon-eye-open { display: none; }
.toggle-btn[data-visible="true"] .icon-eye-closed { display: block; }

.checkbox-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.checkbox-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-remember label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #334155;
}

.form-input:focus,
.input:focus,
input:focus {
  outline: none;
  border-color: #5aa8da;
  box-shadow: 0 0 0 3px rgba(90,168,218,.18);
}

.btn,
.btn-login,
button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1f5f8d 0%, #2f7eb6 100%);
  cursor: pointer;
}

.btn:hover,
.btn-login:hover,
button[type="submit"]:hover { filter: brightness(1.05); }

.alert {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.alert.erro,
.alert-error { background: #f8d7da; color: #721c24; }
.alert.sucesso,
.alert-success { background: #d4edda; color: #155724; }

.links { margin-top: 14px; text-align: center; }
.links a { color: #1f5f8d; text-decoration: none; font-size: 13px; }
.links a:hover { text-decoration: underline; }

.senha-temp {
  background: #eef6ff;
  border: 1px dashed #5aa8da;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
