/* /public/css/indexlocutor.css
   Atualização visual: login leve, moderno e premium.
   Mantém a identidade marrom do painel e utiliza o pattern de "V" de forma sutil. */

:root {
  --brown-dark: #733923;
  --brown: #8d4925;
  --brown-warm: #a55328;
  --brown-soft: #b86b3a;
  --cream: #f7f1ea;
  --cream-light: #fcfaf7;
  --text: #3d302a;
  --text-muted: #7a716c;
  --border: #dfd3ca;
  --white: #ffffff;
}

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

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(165, 83, 40, 0.075), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(115, 57, 35, 0.055), transparent 32%),
    linear-gradient(135deg, #fbf8f4 0%, #f7f1ea 48%, #f2e8df 100%);
  overflow-x: hidden;
  position: relative;
}

/* Pattern enviado para o projeto: propositalmente quase imperceptível. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/imagens/pattern-login.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.02;
  mix-blend-mode: multiply;
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  padding: 42px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: min(100%, 460px);
  padding: 34px 38px 36px;
  border-radius: 24px;
  border: 1px solid rgba(115, 57, 35, 0.10);
  background: rgba(255, 255, 255, 0.91);
  box-shadow:
    0 22px 55px rgba(78, 42, 26, 0.10),
    0 4px 14px rgba(78, 42, 26, 0.055);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: cardIn 0.55s ease-out both;
}

.mic-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--brown);
  display: grid;
  place-items: center;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(165, 83, 40, 0.16), rgba(184, 107, 58, 0.48)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(115, 57, 35, 0.07);
}

.mic-badge svg {
  width: 44px;
  height: 44px;
  display: block;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.welcome-line {
  display: block;
  color: var(--brown-warm);
  font-size: 1.16rem;
  line-height: 1.2;
  margin-bottom: 4px;
  font-weight: 500;
}

.login-header h1 {
  color: var(--brown-dark);
  font-size: clamp(1.75rem, 4.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  font-weight: 750;
}

.login-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-group > label {
  color: var(--brown-dark);
  font-size: 0.98rem;
  font-weight: 700;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  z-index: 2;
  width: 21px;
  height: 21px;
  color: var(--brown);
  pointer-events: none;
}

.field-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0 48px 0 46px;
  outline: none;
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input::placeholder {
  color: #aaa09a;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="text"]:focus {
  border-color: rgba(141, 73, 37, 0.60);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(141, 73, 37, 0.08);
}

.toggle-senha {
  position: absolute;
  right: 11px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7e7a77;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.toggle-senha:hover,
.toggle-senha:focus-visible {
  color: var(--brown-dark);
  background: rgba(141, 73, 37, 0.065);
  outline: none;
}

.toggle-senha svg {
  width: 21px;
  height: 21px;
}

.toggle-senha .eye-closed {
  display: none;
}

.toggle-senha.is-visible .eye-open {
  display: none;
}

.toggle-senha.is-visible .eye-closed {
  display: block;
}

.extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: -2px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #5f5651;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
}

.remember-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 5px;
  border: 1px solid #bda89b;
  background: #fff;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.remember-option input:checked + .custom-checkbox {
  background: var(--brown);
  border-color: var(--brown);
}

.remember-option input:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-option input:focus-visible + .custom-checkbox {
  box-shadow: 0 0 0 4px rgba(141, 73, 37, 0.10);
}

.extras a {
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid rgba(141, 73, 37, 0.35);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.extras a:hover,
.extras a:focus-visible {
  color: var(--brown-dark);
  border-color: var(--brown-dark);
  outline: none;
}

.btn-entrar {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  margin-top: 1px;
  background: linear-gradient(100deg, var(--brown-warm) 0%, var(--brown-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(115, 57, 35, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-entrar svg {
  width: 23px;
  height: 23px;
}

.btn-entrar:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(115, 57, 35, 0.20);
  filter: brightness(1.035);
}

.btn-entrar:active {
  transform: translateY(0);
}

.btn-entrar:focus-visible {
  outline: 3px solid rgba(165, 83, 40, 0.22);
  outline-offset: 3px;
}

.login-error {
  min-height: 18px;
  margin-top: -4px;
  text-align: center;
  color: #a2342a;
  font-size: 0.88rem;
  line-height: 1.35;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .login-page {
    padding: 24px 15px;
    align-items: center;
  }

  .login-card {
    padding: 28px 22px 30px;
    border-radius: 20px;
  }

  .mic-badge {
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
  }

  .mic-badge svg {
    width: 40px;
    height: 40px;
  }

  .login-header {
    margin-bottom: 24px;
  }

  .welcome-line {
    font-size: 1.04rem;
  }

  .login-header p {
    font-size: 0.93rem;
  }

  .desktop-break {
    display: none;
  }

  .extras {
    align-items: flex-start;
    gap: 10px;
  }

  .remember-option,
  .extras a {
    font-size: 0.82rem;
  }
}

@media (max-width: 390px) {
  .extras {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
