/* Static /nassh mirror: portal login embed (tabs + request access). Brand tokens for backgrounds. */
:root {
  --nassh-primary: #9802c7;
  --nassh-dark: #16012a;
  --nassh-sidebar: linear-gradient(185deg, #12001f 0%, #1f0630 45%, #16012a 100%);
  --portal-text: #1b0f2a;
  --portal-muted: #5c4a6e;
  --portal-surface: #ffffff;
  --portal-border: rgba(22, 1, 42, 0.1);
  --portal-shadow: 0 10px 30px rgba(22, 1, 42, 0.1), 0 4px 14px rgba(152, 2, 199, 0.12);
  --portal-radius: 18px;
  --portal-radius-sm: 10px;
  --portal-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.portal-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--portal-font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--portal-text);
  background-color: var(--nassh-dark);
  background-image: var(--nassh-sidebar);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .portal-login-page {
    background-attachment: fixed;
  }
}

.portal-login-page-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 1.25rem;
  box-sizing: border-box;
}

.portal-login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.portal-login-shell {
  width: 100%;
  max-width: 420px;
}

.portal-login-card {
  background: var(--portal-surface);
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow);
  border: 1px solid var(--portal-border);
  padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 480px) {
  .portal-login-card {
    padding: 2.25rem 2rem 1.85rem;
  }
}

.portal-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.35rem;
}

.portal-login-logo {
  display: block;
  width: auto;
  max-width: 168px;
  height: auto;
  max-height: 72px;
  margin: 0 auto 0.65rem;
  object-fit: contain;
}

.portal-login-org {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--portal-muted);
  letter-spacing: 0.02em;
}

.portal-login-tabs {
  display: flex;
  gap: 0;
  margin: 0 -0.25rem 1.5rem;
  padding: 0.2rem;
  background: rgba(22, 1, 42, 0.06);
  border-radius: 12px;
}

.portal-login-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--portal-muted);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.portal-login-tab:hover {
  color: var(--portal-text);
}

.portal-login-tab.is-active {
  color: var(--portal-text);
  background: var(--portal-surface);
  box-shadow: 0 1px 4px rgba(22, 1, 42, 0.08);
}

.portal-login-panel[hidden] {
  display: none !important;
}

.portal-login-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--portal-text);
  text-align: center;
}

.portal-login-lead {
  font-size: 0.9rem;
  color: var(--portal-muted);
  text-align: center;
  margin: 0 0 1.35rem;
}

.portal-login-form .form-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--portal-text);
  margin-bottom: 0.35rem;
}

.portal-login-form .form-label .text-danger {
  font-weight: 700;
}

.portal-login-form .form-control {
  border-radius: var(--portal-radius-sm);
  border-color: var(--portal-border);
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
}

.portal-login-form .form-control:focus {
  border-color: rgba(152, 2, 199, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(152, 2, 199, 0.18);
}

.portal-login-password-field {
  position: relative;
}

.portal-login-password-field .portal-login-password-input {
  padding-right: 2.85rem;
}

.portal-login-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.portal-login-password-toggle:hover {
  color: var(--portal-text);
  background: rgba(152, 2, 199, 0.1);
}

.portal-login-password-toggle:focus-visible {
  outline: 2px solid rgba(152, 2, 199, 0.45);
  outline-offset: 2px;
}

.portal-login-password-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.portal-login-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--portal-radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--nassh-primary) 0%, #66018a 100%);
  box-shadow: 0 4px 14px rgba(152, 2, 199, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-login-submit:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(152, 2, 199, 0.42);
}

.portal-login-submit:active {
  transform: translateY(0);
}

.portal-login-validation {
  font-size: 0.875rem;
  border-radius: var(--portal-radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.portal-login-access-body {
  text-align: center;
  color: var(--portal-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.portal-login-access-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-login-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--portal-radius-sm);
  border: 2px solid var(--nassh-primary);
  color: #66018a;
  background: rgba(152, 2, 199, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.portal-login-btn-outline:hover {
  background: rgba(152, 2, 199, 0.16);
  color: #4d0168;
}

.portal-login-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--portal-radius-sm);
  border: 1px solid var(--portal-border);
  color: var(--portal-muted);
  background: transparent;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.portal-login-btn-ghost:hover {
  border-color: rgba(22, 1, 42, 0.18);
  color: var(--portal-text);
}

.portal-login-footer {
  margin-top: 1.75rem;
  text-align: center;
}

.portal-login-footer-text {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(244, 233, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.portal-login-footer-links {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
}

.portal-login-footer-links a {
  color: #f4e9ff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.portal-login-footer-links a:hover {
  color: #ffffff;
}

.field-validation-error,
.portal-login-form span.text-danger {
  font-size: 0.8125rem;
  display: block;
  margin-top: 0.25rem;
}
