/* Login split layout */
.layout-public {
  min-height: 100vh;
  background: #eef2f7;
}

.login-page {
  display: flex;
  min-height: 100vh;
}

/* Painel esquerdo — branding */
.login-brand {
  display: none;
  width: 42%;
  max-width: 560px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--clube-cor-primaria) 0%, var(--clube-cor-secundaria) 100%);
  color: #fff;
  padding: 2.5rem;
}

@media (min-width: 992px) {
  .login-brand { display: flex; flex-direction: column; }
}

.login-brand-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.35;
  pointer-events: none;
}

.login-brand-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--bs-primary-rgb), 0.92) 0%,
    rgba(var(--bs-primary-rgb), 0.75) 45%,
    rgba(var(--bs-primary-rgb), 0.55) 100%
  );
}

.login-brand-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.login-brand-logo img {
  max-height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.login-brand-welcome {
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.login-brand-welcome h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.login-brand-welcome p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}

.login-features {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
}

.login-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.login-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.login-feature strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.login-feature span {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.45;
}

/* Painel direito — formulário */
.login-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  min-height: 100vh;
}

.login-form-wrap {
  width: 100%;
  max-width: 420px;
}

.login-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid #e8edf2;
}

.login-form-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-form-logo img {
  max-height: 48px;
  width: auto;
}

.login-form-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clube-text);
  text-align: center;
  margin: 0 0 0.35rem;
}

.login-form-sub {
  text-align: center;
  color: #6b7c8d;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.login-field {
  margin-bottom: 1.15rem;
}

.login-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clube-text);
  margin-bottom: 0.4rem;
}

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

.login-input-wrap > i.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa8b5;
  font-size: 0.9rem;
  pointer-events: none;
}

.login-input-wrap .login-input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.5rem;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.login-input-wrap .login-input:focus {
  outline: none;
  border-color: var(--clube-cor-primaria);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}

.login-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9aa8b5;
  padding: 0.25rem;
  cursor: pointer;
  line-height: 1;
}

.login-toggle-pass:hover { color: var(--clube-cor-primaria); }

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.login-options a {
  color: var(--clube-cor-primaria);
  text-decoration: none;
  font-weight: 500;
}

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

.login-btn-primary {
  width: 100%;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #9aa8b5;
  font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8edf2;
}

.login-btn-qr {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--clube-cor-primaria);
  color: var(--clube-cor-primaria);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.login-btn-qr:hover {
  background: rgba(var(--bs-primary-rgb), 0.06);
  color: var(--clube-cor-primaria);
}

.login-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #6b7c8d;
}

.login-form-footer a {
  color: var(--clube-cor-primaria);
  font-weight: 500;
  text-decoration: none;
}

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

.login-mobile-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-mobile-logo img { max-height: 44px; }

@media (min-width: 992px) {
  .login-mobile-logo { display: none; }
}
