body.wgcrm-login-page-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(30, 115, 190, 0.25), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.15), transparent 35%),
    linear-gradient(180deg, #081329, #02060e);
  color: #fff;
}

body.wgcrm-login-page-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.wgcrm-login-shell {
  min-height: 100vh;
  padding: 2rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wgcrm-login-card {
  width: min(960px, 100%);
  background: linear-gradient(180deg, rgba(3, 7, 19, 0.95), rgba(10, 24, 45, 0.95));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  overflow: hidden;
  position: relative;
}

.wgcrm-login-react-pane {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

@supports (backdrop-filter: blur(0)) {
.wgcrm-login-card {
  backdrop-filter: blur(24px);
}
}

.wgcrm-login-react-root {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wgcrm-login-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 460px;
  margin: 0 auto;
  color: #fff;
}

.wgcrm-page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--wgcrm-primary, #1e73be);
  text-align: center;
}

.wgcrm-page-description {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 1rem;
}

.wgcrm-page-helper {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.wgcrm-login-content form,
.wgcrm-login-content .wgcrm-registration-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wgcrm-login-content input[type="text"],
.wgcrm-login-content input[type="email"],
.wgcrm-login-content input[type="password"] {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  color: #fff;
}

.wgcrm-login-content input[type="text"]:focus,
.wgcrm-login-content input[type="email"]:focus,
.wgcrm-login-content input[type="password"]:focus {
  border-color: var(--wgcrm-primary, #1e73be);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.14);
}

.wgcrm-button.primary {
  padding: 0.85rem;
  background: var(--wgcrm-primary, #1e73be);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 6px 18px rgba(30, 115, 190, 0.25);
}

.wgcrm-button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(30, 115, 190, 0.35);
}

.wgcrm-button.secondary {
  padding: 0.85rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.wgcrm-button.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
}

.wgcrm-registration-cta-wrapper {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px rgba(5, 10, 30, 0.35);
  text-align: center;
}

body.wgcrm-login-page-body,
.wgcrm-registration-note,
.wgcrm-registration-subnote {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #fff;
}

.wgcrm-registration-subnote {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.wgcrm-registration-cta {
  margin: 0.75rem 0;
}

.wgcrm-metadata-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wgcrm-metadata-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #fff;
}

.wgcrm-metadata-field input,
.wgcrm-metadata-field textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  resize: vertical;
  color: #fff;
}

.wgcrm-field-description {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.wgcrm-notice {
  border-left: 4px solid var(--wgcrm-primary, #1e73be);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: rgba(30, 115, 190, 0.08);
}

.wgcrm-notice.error {
  border-left-color: #ff4d4f;
  background: rgba(255, 77, 79, 0.1);
}

.wgcrm-page-placeholder {
  padding: 1.25rem 0;
}

.wgcrm-page-placeholder-note {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
}

.wgcrm-alert-grid {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
  display: grid;
  gap: 0.75rem;
}

.wgcrm-alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--wgcrm-text, #1e1e1e);
}

.wgcrm-alert-description {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .wgcrm-login-card {
    grid-template-columns: 1fr;
  }

  .wgcrm-login-react-pane {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}
