/**
 * Nasaq sign-in screen. Loaded on the login/logout tasks only.
 * Palette and motifs from the Nasaq Visual Identity Guidelines 2026:
 * black-to-navy backdrop with a blue glow, light wordmark, blade pattern.
 */

body.task-login {
  min-height: 100vh;
  background: #000;
  color: #f7f7f7;
}

.nasaq-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 55% at 50% 118%, rgba(72, 96, 255, .6) 0%, rgba(55, 78, 255, .22) 38%, rgba(0, 6, 40, 0) 72%),
    radial-gradient(55% 45% at 88% -12%, rgba(55, 78, 255, .2) 0%, rgba(0, 6, 40, 0) 65%),
    linear-gradient(180deg, #000 0%, #000628 100%);
}

body.task-login #layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
}

body.task-login #layout-content {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 5rem 1rem 2.5rem;
  background: transparent;
}

body.task-login #logo {
  position: static;
  width: 176px;
  max-width: 60vw;
  height: auto;
  max-height: none;
  margin: 0 auto .9rem;
  opacity: 1;
}

.nasaq-tagline {
  margin: 0 0 2rem;
  color: #c9d4ff;
  font-size: .95rem;
  letter-spacing: .02em;
}

body.task-login #login-form {
  position: static;
  width: 100%;
  max-width: 360px;
  padding: 1.75rem 1.5rem 1.25rem;
  background: rgba(12, 16, 48, .55);
  border: 1px solid rgba(201, 212, 255, .12);
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px -20px rgba(0, 6, 40, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body.task-login #login-form .form-control,
body.task-login #login-form .input-group-text {
  height: auto;
  padding-top: .65rem;
  padding-bottom: .65rem;
  background: rgba(255, 255, 255, .04);
  border-color: rgba(201, 212, 255, .18);
  color: #f7f7f7;
}

body.task-login #login-form .input-group-text {
  color: #c9d4ff;
}

body.task-login #login-form .form-control::placeholder {
  color: rgba(201, 212, 255, .55);
}

body.task-login #login-form .form-control:focus {
  background: rgba(255, 255, 255, .07);
  border-color: #4860ff;
  box-shadow: 0 0 0 .2rem rgba(72, 96, 255, .35);
}

body.task-login #login-form .formbuttons {
  margin-top: 1.25rem;
}

body.task-login #rcmloginsubmit {
  padding: .7rem 1rem;
  background: #4860ff;
  border-color: #4860ff;
  border-radius: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none !important;
}

body.task-login #rcmloginsubmit:hover,
body.task-login #rcmloginsubmit:focus {
  background: #374eff;
  border-color: #374eff;
}

body.task-login #login-footer {
  color: rgba(201, 212, 255, .6);
}

body.task-login #login-footer:empty {
  display: none;
}

.nasaq-blades {
  display: block;
  width: 188px;
  max-width: 70vw;
  margin: 2.25rem auto 0;
}

.nasaq-blades path {
  fill: rgba(201, 212, 255, .14);
}

.nasaq-blades path.accent {
  fill: #4860ff;
}

.nasaq-footer {
  margin-top: 1.25rem;
  font-size: .8rem;
}

.nasaq-footer a {
  color: rgba(201, 212, 255, .6);
  text-decoration: none;
}

.nasaq-footer a:hover,
.nasaq-footer a:focus {
  color: #fff;
}

.nasaq-lang {
  position: fixed;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 2;
  display: flex;
  gap: .25rem;
  padding: .25rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(201, 212, 255, .14);
  border-radius: 999px;
}

.nasaq-lang a {
  padding: .35rem .9rem;
  border-radius: 999px;
  color: #c9d4ff;
  font-size: .85rem;
  line-height: 1.4;
  text-decoration: none;
}

.nasaq-lang a:hover,
.nasaq-lang a:focus {
  color: #fff;
}

.nasaq-lang a.active {
  background: #f7f7f7;
  color: #000628;
}

.nasaq-lang a[lang="ar"] {
  font-family: 'Nasaq Arabic', sans-serif;
}

.nasaq-lang a[lang="en"] {
  font-family: 'Poppins', sans-serif;
}
