/* ClickTop — página de login (cópia estática do tema do dashboard) */
:root {
  --bg-1: #031454;
  --bg-2: #072a8f;
  --accent: #ff8d22;
  --accent-2: #ff6a00;
  --text: #edf3ff;
  --muted: #a8b8e8;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.14);
  --success: #3ddc97;
  --warning: #ffd37a;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(4, 12, 44, 0.35);
}

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

body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at 12% 18%, rgba(255, 141, 34, 0.18), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(142deg, var(--bg-1), var(--bg-2) 48%, #04195f 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}

a {
  color: var(--warning);
}

button {
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
}

.login-layout__aside {
  position: relative;
  align-self: stretch;
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(165deg, rgba(8, 28, 100, 0.92) 0%, rgba(3, 18, 75, 0.98) 50%, rgba(4, 25, 95, 0.99) 100%);
  border-right: 1px solid var(--card-border);
  overflow: hidden;
  box-sizing: border-box;
}

.login-layout__aside::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -30%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(255, 141, 34, 0.22), transparent 65%);
  pointer-events: none;
}

.login-layout__aside-inner {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100vh;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) clamp(28px, 4vw, 48px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.login-layout__aside-brand {
  display: inline-block;
  line-height: 0;
  margin-bottom: 28px;
  align-self: flex-start;
}

.login-layout__aside-brand img {
  width: min(220px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.login-layout__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffe7cf;
  background: rgba(255, 141, 34, 0.2);
  border: 1px solid rgba(255, 141, 34, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.login-layout__aside-title {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: #fff;
}

.login-layout__aside-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.login-layout__aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: #c8d6f5;
}

.login-layout__aside-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.4;
}

.login-layout__aside-list li::before {
  content: "\2713\0020";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* Seletor de idioma — canto superior direito */
.login-page-lang {
  position: fixed;
  top: clamp(12px, 3vw, 22px);
  right: clamp(12px, 3vw, 24px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(3, 18, 75, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(2, 8, 40, 0.35);
}

.login-page-lang__btn {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.login-page-lang__btn:hover {
  transform: scale(1.06);
}

.login-page-lang__btn:focus-visible {
  outline: 2px solid rgba(255, 141, 34, 0.85);
  outline-offset: 3px;
}

.login-page-lang__btn img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.login-page-lang__btn.lang-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff9f45, #7ee8ff, #ff9f45, transparent);
  box-shadow: 0 0 8px rgba(255, 141, 34, 0.85);
}

.login-layout__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px) clamp(20px, 4vw, 40px);
  min-height: 100vh;
  box-sizing: border-box;
}

.login-layout__main-inner {
  width: 100%;
  max-width: 440px;
}

.login-card {
  width: 100%;
  padding: clamp(26px, 4vw, 36px);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(10px);
}

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

.login-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.login-card__sub {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.login-form__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.35);
}

.register-form-wrap.login-form .login-form__submit.btn-primary {
  margin-top: 4px;
}

.login-card__hint {
  margin-top: 22px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.login-card__link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--warning);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-card__link:hover {
  color: #ffe08a;
}

.login-layout__links {
  margin-top: 28px;
  text-align: center;
}

.login-layout__back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--warning);
  margin-bottom: 12px;
}

.login-layout__back:hover {
  text-decoration: underline;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 1rem;
}

.field input:focus {
  outline: 2px solid rgba(255, 141, 34, 0.5);
  outline-offset: 1px;
}

.field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 10px;
}

.form-info {
  color: var(--success);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.config-banner {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
}

.config-banner code {
  font-size: 0.8em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-layout__aside {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 0;
  }

  .login-layout__aside-inner {
    position: relative;
    min-height: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 28px 24px 32px;
    text-align: center;
  }

  .login-layout__aside-brand {
    display: flex;
    justify-content: center;
    align-self: center;
  }

  .login-layout__badge {
    align-self: center;
  }

  .login-layout__aside-list {
    text-align: left;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .login-layout__aside-list li {
    padding-left: 24px;
  }
}

.hidden {
  display: none !important;
}
