@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  --brand-primary: #291E47;
  --brand-primary-dark: #030021;
  --brand-primary-light: #5C517A;
  --brand-secondary: #017B84;
  --brand-secondary-light: #34AEB7;
  --accent-color-1: #1A122B;
  --accent-color-2: #44C0B8;
  --accent-color-3: #f15f56;
  --brand-background: #F9F9F9;
  --brand-neutral: #0E101B;
  --border-radius: 8px;
  --border-radius-card: 12px;
  --btn-border-radius: 8px;
  --font-family-base: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-muted: #6C6C6C;
  --text-dark: #0E101B;
  --border-light: #D2D2D2;
  --border-input: #B8B8B8;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-family-base);
  font-size: 15px;
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.wings-header {
  background-color: var(--brand-primary);
  width: 100%;
  height: 56px;
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.wings-header-inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wings-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wings-logo-img {
  height: 38px;
  width: auto;
  max-width: 260px;
  display: block;
}

.wings-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wings-header-help {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: opacity 0.15s ease;
}

.wings-header-help:hover {
  opacity: 0.8;
}

.wings-header-help svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.wings-main-container {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background-color: #FFFFFF;
}

/* ==========================================================================
   Login & Auth Card
   ========================================================================== */
.wings-login-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: var(--border-radius-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 40px 44px;
}

.wings-login-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}

.wings-login-subtitle {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: -16px;
  margin-bottom: 24px;
}

/* Form Groups */
.wings-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.wings-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.wings-input-wrap {
  position: relative;
  width: 100%;
}

.wings-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-input);
  border-radius: var(--border-radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wings-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(41, 30, 71, 0.12);
}

.wings-input::placeholder {
  color: #9EA09C;
  font-size: 14px;
}

.wings-input-pwd {
  padding-right: 44px;
}

.wings-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  opacity: 0.75;
}

.wings-pwd-toggle:hover {
  opacity: 1;
}

.wings-pwd-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Remember Username Switch */
.wings-remember-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
}

.wings-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.wings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wings-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #9E9E9E;
  transition: 0.25s ease;
  border-radius: 24px;
}

.wings-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.wings-switch input:checked + .wings-slider {
  background-color: var(--brand-secondary);
}

.wings-switch input:checked + .wings-slider::before {
  transform: translateX(20px);
}

.wings-remember-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand-primary);
  cursor: pointer;
  user-select: none;
}

/* Primary Button (Log In) */
.wings-btn-primary {
  width: 100%;
  height: 46px;
  background-color: #FFFFFF;
  border: 2px solid var(--brand-primary);
  border-radius: var(--btn-border-radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wings-btn-primary:hover, .wings-btn-primary:active {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

/* Forgot Link */
.wings-forgot-wrap {
  text-align: center;
  margin: 18px 0;
}

.wings-forgot-link {
  color: var(--brand-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.wings-forgot-link:hover {
  text-decoration: underline;
  color: var(--brand-primary);
}

/* Secondary Button (Register) */
.wings-btn-secondary {
  width: 100%;
  height: 46px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--btn-border-radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wings-btn-secondary:hover {
  background-color: #FAF9F7;
  border-color: #B8B8B8;
}

.wings-btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Solid Purple Button for submit actions in multi-step verification */
.wings-btn-solid {
  width: 100%;
  height: 46px;
  background-color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  border-radius: var(--btn-border-radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wings-btn-solid:hover {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.wings-alert {
  padding: 14px 16px;
  border-radius: var(--border-radius);
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wings-alert-info {
  background-color: #E8F5F5;
  color: #005A66;
  border: 1px solid #C2E5E2;
}

.wings-alert-error {
  background-color: #FDF2F2;
  color: #991B1B;
  border: 1px solid #F87171;
}

.wings-alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.wings-footer {
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid #F0F0F0;
  padding: 32px 24px 36px;
  flex-shrink: 0;
}

.wings-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.wings-footer-left {
  flex: 1 1 600px;
}

.wings-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  list-style: none;
}

.wings-footer-link {
  color: var(--brand-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wings-footer-link:hover {
  text-decoration: underline;
  color: var(--brand-primary);
}

.wings-footer-routing {
  font-size: 13.5px;
  color: #525252;
  font-weight: 500;
}

.wings-social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  list-style: none;
}

.wings-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  transition: opacity 0.15s ease;
}

.wings-social-link:hover {
  opacity: 0.7;
}

.wings-social-link img, .wings-social-link svg {
  width: 20px;
  height: 20px;
}

.wings-legal-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.wings-profile-link {
  font-size: 12.5px;
  color: var(--brand-secondary);
  font-weight: 600;
  text-decoration: none;
}

.wings-profile-link:hover {
  text-decoration: underline;
}

.wings-footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-top: 8px;
}

.wings-badge-housing {
  height: 42px;
  width: auto;
}

.wings-badge-ncua {
  height: 40px;
  width: auto;
}

/* ==========================================================================
   Chat Floating Widget Trigger
   ========================================================================== */
.wings-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5C517A, #291E47);
  box-shadow: 0 4px 14px rgba(41, 30, 71, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wings-chat-trigger:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(41, 30, 71, 0.45);
}

.wings-chat-trigger svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

/* ==========================================================================
   Authenticating Spinner & Loader (Matches Ent / Wings Angular Loader)
   ========================================================================== */
.wings-auth-main {
  min-height: calc(100vh - 56px - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: #FFFFFF;
}

.wings-auth-box {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border-radius: var(--border-radius-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.wings-auth-header {
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 24px 30px;
  text-align: center;
}

.wings-auth-header h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.wings-auth-header p {
  font-size: 13.5px;
  opacity: 0.85;
}

.wings-auth-body {
  padding: 36px 32px;
}

.wings-spinner-wrap {
  text-align: center;
  padding: 20px 10px;
}

.wings-loader,
.wings-loader:before,
.wings-loader:after {
  border-radius: 50%;
}

.wings-loader {
  color: var(--brand-primary);
  font-size: 6px;
  text-indent: -99999em;
  margin: 35px auto 45px;
  position: relative;
  width: 10em;
  height: 10em;
  box-shadow: inset 0 0 0 1em;
  transform: translateZ(0);
}

.wings-loader:before,
.wings-loader:after {
  position: absolute;
  content: '';
}

.wings-loader:before {
  width: 5.5em;
  height: 11em;
  background: #FFFFFF;
  border-radius: 11em 0 0 11em;
  top: -0.5em;
  left: -0.4em;
  transform-origin: 5.5em 5.6em;
  animation: wings-load 2s infinite ease 1.5s;
}

.wings-loader:after {
  width: 5.5em;
  height: 11em;
  background: #FFFFFF;
  border-radius: 0 11em 11em 0;
  top: -0.5em;
  left: 5.5em;
  transform-origin: -0.1em 5.5em;
  animation: wings-load 2s infinite ease;
}

@keyframes wings-load {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wings-spinner-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.wings-spinner-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 24px;
}

.wings-progress-bar {
  width: 100%;
  max-width: 280px;
  height: 4px;
  background: #ECE8E1;
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.wings-progress-fill {
  width: 40%;
  height: 100%;
  background: var(--brand-secondary);
  border-radius: 4px;
  position: absolute;
  animation: wings-progress 1.6s infinite ease-in-out;
}

@keyframes wings-progress {
  0% { left: -40%; width: 40%; }
  50% { left: 40%; width: 50%; }
  100% { left: 100%; width: 30%; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .wings-header-inner {
    padding: 0 16px;
  }

  .wings-logo-img {
    height: 32px;
    max-width: 210px;
  }

  .wings-main-container {
    padding: 24px 16px 40px;
  }

  .wings-login-card {
    padding: 30px 22px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  }

  .wings-footer {
    padding: 28px 16px 32px;
  }

  .wings-footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .wings-footer-links {
    gap: 14px 18px;
  }

  .wings-footer-right {
    margin-top: 4px;
    justify-content: flex-start;
  }

  .wings-chat-trigger {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .wings-login-title {
    font-size: 22px;
  }

  .wings-login-card {
    padding: 26px 18px;
  }

  .wings-footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Form Row & Dropzone styles */
.wings-form-row {
  display: flex;
  gap: 14px;
}

@media (max-width: 600px) {
  .wings-form-row {
    flex-direction: column;
    gap: 0;
  }
}

.wings-file-dropzone {
  border: 2px dashed var(--border-input);
  border-radius: var(--border-radius);
  padding: 24px 16px;
  text-align: center;
  background: #FAF9F7;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wings-file-dropzone:hover {
  border-color: var(--brand-secondary);
  background: #E8F5F5;
}

.wings-file-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
