/* Modern split-screen auth layout (login screen) — self-contained, no external
   CDN/network dependency, consistent with the LAN-only NFR (BRD Section 9). */

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6fb;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-brand {
  display: none;
  flex: 1 1 45%;
  position: relative;
  padding: 3rem;
  color: #fff;
  background: linear-gradient(135deg, #1d3557 0%, #3a6ea5 55%, #4f9ed6 100%);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 120%, rgba(255, 255, 255, 0.12), transparent 60%),
              radial-gradient(circle at 90% -10%, rgba(255, 255, 255, 0.15), transparent 55%);
  pointer-events: none;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 1;
}

.auth-brand-logo svg { flex-shrink: 0; }

.auth-brand-copy { max-width: 26rem; z-index: 1; }

.auth-brand-copy h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.auth-brand-copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.975rem;
  line-height: 1.6;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 1;
}

.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.auth-feature-list svg { flex-shrink: 0; margin-top: 0.15rem; }

.auth-brand-footer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  z-index: 1;
}

.auth-panel {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 45px -20px rgba(29, 53, 87, 0.25), 0 2px 8px rgba(29, 53, 87, 0.06);
}

.auth-card-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.auth-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d2939;
  margin-bottom: 0.25rem;
}

.auth-card .auth-subtitle {
  color: #667085;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-field { margin-bottom: 1.1rem; }

.auth-field label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: #344054;
  margin-bottom: 0.4rem;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-group svg {
  position: absolute;
  left: 0.85rem;
  color: #98a2b3;
  pointer-events: none;
}

.auth-input-group input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.5rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input-group input:focus {
  outline: none;
  border-color: #3a6ea5;
  box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.15);
}

.auth-input-group.has-toggle input { padding-right: 2.5rem; }

.auth-toggle-visibility {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #98a2b3;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle-visibility:hover { color: #475467; background: #f2f4f7; }

.auth-alert {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}

.auth-alert svg { flex-shrink: 0; margin-top: 0.1rem; }

.auth-submit {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #1d3557, #3a6ea5);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.auth-submit:hover { filter: brightness(1.08); }
.auth-submit:active { transform: translateY(1px); }

.auth-card-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #98a2b3;
}

@media (min-width: 900px) {
  .auth-brand { display: flex; }
  .auth-card-mobile-brand { display: none; }
}
