/* STS Login Page — sts-login.css */

@keyframes bg-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

body.sts-login-body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Full-screen animated background */
.sts-bg-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #060d1f, #0d1f6e, #1a3a8f, #122a52, #1a0a4a, #060d1f);
  background-size: 400% 400%;
  animation: bg-shift 18s ease infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* Dot texture */
.sts-bg-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* STS watermark */
.sts-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28vw;
  font-weight: 900;
  color: #fff;
  opacity: .025;
  pointer-events: none;
  user-select: none;
  letter-spacing: -4px;
  line-height: 1;
}

/* Centering wrapper */
.sts-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

/* Card */
.sts-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  overflow: hidden;
}

/* Card header */
.sts-card-head {
  background: linear-gradient(135deg, #1a3a6b 0%, #2a5298 100%);
  color: #fff;
  padding: 36px 32px 28px;
  text-align: center;
}

.sts-logo-ring {
  width: 88px;
  height: 88px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  overflow: hidden;
}

.sts-logo-ring img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.sts-org {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 4px;
}

.sts-tagline {
  font-size: .82rem;
  opacity: .82;
  font-style: italic;
  margin-bottom: 6px;
}

.sts-portal-label {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 14px;
}

/* Card body */
.sts-card-body {
  padding: 28px 32px 32px;
}

/* Fields */
.sts-field {
  margin-bottom: 18px;
}

.sts-lbl {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #5a6a7e;
  margin-bottom: 6px;
}

.sts-input,
.sts-card-body select,
.sts-card-body input[type=text],
.sts-card-body input[type=password] {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 13px !important;
  border: 1.5px solid #d1dbe8 !important;
  border-radius: 7px !important;
  font-size: .93rem !important;
  color: #1a2332 !important;
  background: #fff !important;
  font-family: inherit !important;
  transition: border-color .2s, box-shadow .2s !important;
  outline: none !important;
  appearance: auto;
}

.sts-input:focus,
.sts-card-body select:focus,
.sts-card-body input[type=text]:focus,
.sts-card-body input[type=password]:focus {
  border-color: #2a5298 !important;
  box-shadow: 0 0 0 3px rgba(42,82,152,.1) !important;
}

/* Submit button */
.sts-btn-submit,
input.sts-btn-submit {
  display: block !important;
  width: 100% !important;
  padding: 12px !important;
  background: linear-gradient(135deg, #1a3a6b, #2a5298) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 7px !important;
  font-size: .97rem !important;
  font-weight: 600 !important;
  letter-spacing: .4px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(26,58,107,.28) !important;
  font-family: inherit !important;
  margin-top: 4px !important;
}

/* Amber notice */
.sts-notice {
  margin-top: 14px;
  background: #fff8e6;
  border: 1px solid #f0c060;
  border-radius: 6px;
  padding: 9px 13px;
  font-size: .8rem;
  color: #7a5500;
  text-align: center;
}

/* Recaptcha */
.g-recaptcha {
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 500px) {
  .sts-card-head { padding: 28px 20px 22px; }
  .sts-card-body { padding: 20px 20px 24px; }
  .sts-logo-ring { width: 72px; height: 72px; }
  .sts-logo-ring img { width: 58px; height: 58px; }
  .sts-org { font-size: 1rem; }
  .sts-watermark { font-size: 40vw; }
}

@media (prefers-reduced-motion: reduce) {
  .sts-bg-wrap { animation: none; }
}
