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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
}

.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 380px;
}

/* --- Marca --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #1db954;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon i {
  color: #fff;
  font-size: 22px;
}

.brand-text p {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.brand-text h2 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.divider {
  height: 1px;
  background: #2a2a2a;
  margin-bottom: 1.75rem;
}

/* --- Campos --- */
.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.field label i {
  font-size: 14px;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #2e2e2e;
  background: #111;
  color: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-wrap input::placeholder {
  color: #444;
}

.input-wrap input:focus {
  border-color: #1db954;
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.15);
}

/* --- Botão ver senha --- */
.toggle-pw {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #555;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.toggle-pw:hover {
  color: #aaa;
}

/* --- Botão entrar --- */
.btn-login {
  width: 100%;
  padding: 12px;
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.75rem;
  transition: background 0.2s, transform 0.1s;
}

.btn-login:hover {
  background: #18a349;
}

.btn-login:active {
  transform: scale(0.98);
}

.btn-login.loading {
  pointer-events: none;
  opacity: 0.75;
}

/* --- Spinner --- */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Erro --- */
.erro {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.25);
  color: #ff5252;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  margin-top: 1rem;
}

.erro i {
  font-size: 15px;
  flex-shrink: 0;
}

/* --- Rodapé --- */
.footer-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 12px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.footer-note i {
  font-size: 13px;
}

/* --- reCAPTCHA --- */
.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.recaptcha-wrap iframe {
  border-radius: 8px;
}