/* Login — Glassmorphism (referência visual) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.login-scene {
  --login-glass: rgba(255, 255, 255, 0.07);
  --login-glass-border: rgba(255, 193, 7, 0.22);
  --login-text: #ffffff;
  --login-muted: rgba(255, 220, 150, 0.75);

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(255, 87, 34, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(255, 193, 7, 0.2) 0%, transparent 45%),
    linear-gradient(160deg, #0a0610 0%, #1a0a2e 40%, #2d1045 100%);
}

/* Formas 3D no fundo */
.login-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-shape {
  position: absolute;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.login-shape-ring {
  width: 120px;
  height: 120px;
  border: 22px solid #ffc107;
  border-radius: 50%;
  top: 12%;
  left: 8%;
  opacity: 0.85;
}

.login-shape-ring-2 {
  width: 70px;
  height: 70px;
  border: 14px solid #ff6b35;
  border-radius: 50%;
  bottom: 18%;
  right: 12%;
}

.login-shape-zig {
  width: 90px;
  height: 36px;
  top: 22%;
  right: 18%;
  background: repeating-linear-gradient(
    90deg,
    #ff9100 0 14px,
    transparent 14px 22px
  );
  transform: rotate(-12deg);
  border-radius: 4px;
  opacity: 0.85;
}

.login-shape-zig-2 {
  width: 60px;
  height: 24px;
  bottom: 28%;
  left: 14%;
  background: repeating-linear-gradient(
    90deg,
    #ffe082 0 10px,
    transparent 10px 16px
  );
  transform: rotate(18deg);
}

.login-shape-tube {
  width: 140px;
  height: 48px;
  background: linear-gradient(180deg, #ffc107 0%, #ff8f00 100%);
  border-radius: 24px;
  bottom: 14%;
  left: 22%;
  transform: rotate(-28deg);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.12);
}

.login-shape-tube-2 {
  width: 100px;
  height: 34px;
  top: 38%;
  right: 6%;
  background: linear-gradient(180deg, #ff6b35 0%, #e84393 100%);
  border-radius: 20px;
  transform: rotate(42deg);
}

.login-shape-curve {
  width: 80px;
  height: 80px;
  border: 18px solid transparent;
  border-top-color: #ff5722;
  border-right-color: #ffc107;
  border-radius: 50%;
  top: 55%;
  left: 6%;
  transform: rotate(30deg);
}

/* Container central: card + rodapé em coluna */
.login-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

/* Painel escuro atrás do card */
.login-backdrop {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: calc(100% - 32px);
  background: rgba(40, 10, 60, 0.4);
  border-radius: 22px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}

/* Card glass */
.login-glass {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 26px 24px 22px;
  background: var(--login-glass);
  border: 1px solid var(--login-glass-border);
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--login-text);
}

.login-brand {
  text-align: center;
  margin-bottom: 12px;
}

.login-logo {
  display: block;
  width: 100%;
  max-width: 165px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.login-field {
  margin-bottom: 12px;
}

.login-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--login-text);
}

.login-field input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  outline: none;
  transition: box-shadow 0.15s;
}

.login-field input::placeholder {
  color: #9ca3af;
}

.login-field input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

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

.login-password-wrap input {
  padding-right: 40px;
}

.login-toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-toggle-pw:hover { color: #374151; }

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

.login-forgot {
  display: inline-block;
  font-size: 12px;
  color: var(--login-muted);
  text-decoration: none;
  margin-top: -6px;
  margin-bottom: 20px;
}

.login-forgot:hover {
  color: #fff;
  text-decoration: underline;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -2px 0 14px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--login-muted);
  cursor: pointer;
}

.login-remember input {
  width: 16px;
  height: 16px;
  accent-color: #ffc107;
}

.login-submit {
  width: 100%;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #1a0a00;
  background: linear-gradient(135deg, #ffc107 0%, #ff8f00 50%, #ff6b35 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.35);
}

.login-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(255, 107, 53, 0.5);
}

.login-submit:active {
  transform: scale(0.99);
}

.login-secure {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.login-secure-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffe082;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.login-secure-text {
  font-size: 11px;
  color: var(--login-muted);
  line-height: 1.4;
  margin: 0;
}

.login-copyright {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  line-height: 1.35;
}

/* Alertas no login */
.login-scene .alerts { margin-bottom: 16px; }

.login-scene .alert {
  font-size: 13px;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.login-scene .alert-sucesso {
  background: rgba(52, 199, 89, 0.2);
}

.login-scene .alert-erro {
  background: rgba(255, 59, 48, 0.25);
}

.login-scene .alert-aviso,
.login-scene .alert-info {
  background: rgba(255, 255, 255, 0.12);
}

.login-scene .form-error {
  color: #fecaca;
  font-size: 12px;
  margin-top: 6px;
}

.login-wrap--cadastro {
  max-width: 480px;
}

.login-glass--wide {
  max-width: 480px;
}

.login-subtitle {
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
  text-align: center;
}

.login-form--cadastro .login-field {
  margin-bottom: 14px;
}

.login-footer-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--login-muted);
}

.login-footer-link a {
  color: #ffc107;
  text-decoration: none;
  font-weight: 600;
}

.login-footer-link a:hover {
  text-decoration: underline;
}

.login-submit--link {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
}

.field-hint {
  font-size: 11px;
  margin-top: 4px;
}

.field-hint.is-ok {
  color: #86efac;
}

.field-hint.is-erro {
  color: #fecaca;
}

.login-field input.is-valid {
  border-color: rgba(134, 239, 172, 0.6);
}

.login-field input.is-invalid {
  border-color: rgba(254, 202, 202, 0.7);
}

@media (max-width: 480px) {
  .login-glass {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .login-backdrop {
    border-radius: 18px;
  }

  .login-wrap { max-width: 360px; }
  .login-logo { max-width: 145px; }
  .login-shape-ring { width: 70px; height: 70px; border-width: 12px; }
}
