/* Nexus Git sign-in — dark default, light via data-theme="nexus-light" */

html.nexus-git-login,
html.nexus-git-login body {
  margin: 0 !important;
  padding: 0 !important;
  background: #0d1117 !important;
  color: #e6edf3 !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  color-scheme: dark;
}

html.nexus-git-login[data-theme="nexus-light"],
html.nexus-git-login[data-theme="nexus-light"] body {
  background: #f9fafb !important;
  color: #111827 !important;
  color-scheme: light;
}

html.nexus-git-login link[href*="index.css"],
html.nexus-git-login link[href*="nexus-git.css"],
html.nexus-git-login link[href*="nexus-git-landing"],
html.nexus-git-login link[href*="nexus-git-vars"] {
  display: none !important;
}

html.nexus-git-login #navbar,
html.nexus-git-login nav#navbar,
html.nexus-git-login .page-footer,
html.nexus-git-login footer.page-footer {
  display: none !important;
}

html.nexus-git-login .full.height {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0d1117 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

html.nexus-git-login[data-theme="nexus-light"] .full.height {
  background: #f9fafb !important;
}

html.nexus-git-login .ui.page.grid,
html.nexus-git-login .ui.grid,
html.nexus-git-login .ui.segment,
html.nexus-git-login .ui.container {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.nexus-git-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.nexus-git-login-wrap {
  max-width: 28rem;
  width: 100%;
  text-align: center;
}

.nexus-git-login-logo,
img.nexus-git-login-logo,
svg.nexus-git-login-logo {
  height: 3rem;
  width: auto;
  max-width: 140px;
  display: block;
  margin: 0 auto 1rem;
}

.nexus-git-login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-title {
  color: #111827;
}

.nexus-git-login-card {
  text-align: left;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-card {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nexus-git-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.nexus-git-field {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.nexus-git-login-page .nexus-git-field input,
.nexus-git-login-page input[type="text"],
.nexus-git-login-page input[type="password"] {
  display: block !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #30363d !important;
  background: #0d1117 !important;
  color: #e6edf3 !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  height: auto !important;
  box-shadow: none !important;
}

html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-page .nexus-git-field input,
html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-page input[type="text"],
html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-page input[type="password"] {
  border-color: #d1d5db !important;
  background: #fff !important;
  color: #111827 !important;
}

.nexus-git-login-page .nexus-git-field input:focus,
.nexus-git-login-page input[type="text"]:focus,
.nexus-git-login-page input[type="password"]:focus {
  border-color: #388bfd !important;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.25) !important;
}

html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-page .nexus-git-field input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.nexus-git-login-btn {
  margin-top: 4px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #238636;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.nexus-git-login-btn:hover {
  background: #2ea043;
}

html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-btn {
  background: #0284c7;
}

html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-btn:hover {
  background: #0369a1;
}

.nexus-git-login-error {
  color: #ffa198;
  font-size: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #5f2525;
  border: 1px solid #783030;
  border-radius: 8px;
}

.nexus-git-login-gdpr {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #8b949e;
  line-height: 1.5;
}

.nexus-git-login-gdpr a {
  color: #58a6ff;
  text-decoration: none;
}

html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-gdpr {
  color: #6b7280;
}

html.nexus-git-login[data-theme="nexus-light"] .nexus-git-login-gdpr a {
  color: #0284c7;
}

.nexus-git-copyright {
  font-size: 10px;
  line-height: 1.5;
  color: #8b949e;
  text-align: center;
  padding: 10px 12px 0;
  margin: 0;
}

.nexus-git-copyright .product {
  color: #8b949e;
  font-weight: 600;
}
