/* Worship Teams Enterprise — Login & Register */
.wte-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f766e 100%);
  padding: 24px;
  box-sizing: border-box;
}

.wte-auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  margin: auto;
  background: var(--wt-surface, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  min-height: 560px;
}

.wte-auth-layout--single {
  grid-template-columns: 1fr;
  max-width: 440px;
  min-height: auto;
}

.wte-auth-brand {
  background: linear-gradient(160deg, #0f766e, #115e59);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wte-auth-brand__church-logo {
  margin-bottom: 20px;
}

.wte-auth-brand__church-logo img {
  display: block;
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wte-auth-brand h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff !important;
}

body.wte-app-page .wte-auth-brand h1,
.wte-frontend-root .wte-auth-brand h1,
#wte-auth-app .wte-auth-brand h1 {
  color: #fff !important;
}

.wte-auth-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.wte-auth-brand ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.wte-auth-brand li {
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.wte-auth-brand li::before {
  content: '✓';
  margin-right: 10px;
  color: #5eead4;
  font-weight: 700;
}

.wte-auth-brand__actions {
  margin-top: 28px;
  width: 100%;
}

.wte-auth-switch {
  margin: 20px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.wte-auth-link {
  background: none;
  border: none;
  color: #0f766e;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
}

.wte-auth-link:hover {
  color: #0d9488;
}

.wte-auth-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wte-auth-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
  width: 100%;
}

.wte-auth-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wte-auth-tab.is-active {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wte-auth-form {
  display: none;
}

.wte-auth-form.is-active {
  display: block;
}

.wte-auth-form h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #0f172a;
}

.wte-auth-form .wte-auth-sub {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 14px;
}

.wte-auth-field {
  margin-bottom: 16px;
}

.wte-auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.wte-auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.wte-auth-field input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.wte-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wte-auth-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.wte-auth-submit--on-brand {
  margin-top: 0;
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.wte-auth-submit--on-brand:hover {
  opacity: 1;
  background: #f0fdfa;
}

.wte-auth-submit:hover {
  opacity: 0.92;
}

.wte-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wte-auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.wte-auth-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .wte-auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .wte-auth-brand {
    padding: 32px 24px;
  }

  .wte-auth-panel {
    padding: 32px 24px;
  }

  .wte-auth-row {
    grid-template-columns: 1fr;
  }
}
