/*
 * ssstreams.com — login page design (templates/modexa/login.tpl).
 * Loaded only on the login page by includes/hooks/ssstreams_login_style.php.
 */

html,
body.template-login {
  overflow-x: clip;
}
body.template-login #main-body {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- Layout: full width, card centred ---------- */
.ssx-login {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 86px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- Sign-in side ---------- */
.ssx-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .07) 1px, transparent 0) 0 0 / 22px 22px,
    #f8fafc;
}
.ssx-main .login-form {
  width: 100%;
  max-width: 460px;
}
.ssx-card.card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.ssx-card .card-body {
  padding: 40px 40px 28px;
}
.ssx-card-head {
  margin-bottom: 26px;
}
.ssx-lock {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
}
.ssx-card-head .h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.ssx-card .form-control-label {
  margin-bottom: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.ssx-card .form-group {
  margin-bottom: 18px;
}
.ssx-forgot {
  margin-bottom: 6px;
  color: #2563eb !important;
  font-weight: 600;
}

/* Inputs */
.ssx-card .input-group-merge {
  border-radius: 12px;
  transition: box-shadow .2s ease;
}
.ssx-card .input-group-merge .input-group-text,
.ssx-card .input-group-merge .form-control,
.ssx-card .input-group-merge .btn-reveal-pw {
  height: 50px;
  border-color: #e2e8f0;
  background: #fff;
  transition: border-color .2s ease;
}
.ssx-card .input-group-merge .input-group-text {
  border-radius: 12px 0 0 12px;
  border-right: 0;
  color: #94a3b8;
}
.ssx-card .input-group-merge .form-control {
  border-left: 0;
  font-size: 15px;
  box-shadow: none;
}
.ssx-card .input-group-merge > .form-control:last-child {
  border-radius: 0 12px 12px 0;
}
.ssx-card .input-group-merge .btn-reveal-pw {
  border-left: 0;
  border-radius: 0 12px 12px 0;
  color: #94a3b8;
}
.ssx-card .input-group-merge:has(.btn-reveal-pw) .form-control {
  border-right: 0;
  border-radius: 0;
}
.ssx-card .input-group-merge:focus-within {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
.ssx-card .input-group-merge:focus-within .input-group-text,
.ssx-card .input-group-merge:focus-within .form-control,
.ssx-card .input-group-merge:focus-within .btn-reveal-pw {
  border-color: #2563eb;
}
.ssx-card .input-group-merge:focus-within .input-group-text {
  color: #2563eb;
}

/* Captcha, remember me, button */
.ssx-card .recaptcha-container {
  margin-bottom: 14px;
}
.ssx-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.ssx-remember input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
}
.ssx-submit.btn {
  position: relative;
  overflow: hidden;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .35);
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease, filter .2s;
}
.ssx-submit.btn:hover,
.ssx-submit.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .45);
  filter: brightness(1.05);
}
.ssx-submit.btn:active {
  transform: translateY(0) scale(.99);
}
.ssx-submit .fa-arrow-right {
  margin-left: 6px;
  font-size: 14px;
  transition: transform .2s;
}
.ssx-submit:hover .fa-arrow-right {
  transform: translateX(3px);
}
.ssx-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  pointer-events: none;
}
.ssx-secure {
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: 12.5px;
  text-align: center;
}
.ssx-secure i {
  margin-right: 4px;
  color: #22c55e;
}
.ssx-card .card-footer {
  padding: 18px 40px;
  border-top: 1px solid #f1f5f9;
  background: #fbfcfe;
  text-align: center;
}
.ssx-card .card-footer a {
  margin-left: 4px;
  color: #2563eb;
}

/* ---------- Tablet & phone: stack, sign-in first ---------- */
@media (max-width: 991.98px) {
  .ssx-login {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ssx-main {
    padding: 32px 16px 40px;
  }
}
@media (max-width: 575.98px) {
  .ssx-card .card-body {
    padding: 28px 22px 22px;
  }
  .ssx-card .card-footer {
    padding: 16px 22px;
  }
}

/* ---------- Motion (off for visitors who ask for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ssx-card.card {
    animation: ssx-card-in .8s cubic-bezier(.2, .7, .2, 1) .1s both;
  }
  .ssx-submit::after { animation: ssx-sweep 6s ease-in-out 1.6s infinite; }
  .ssx-lock { animation: ssx-pop .6s cubic-bezier(.34, 1.56, .64, 1) .45s both; }
}
@keyframes ssx-card-in {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes ssx-pop {
  from { opacity: 0; transform: scale(.4) rotate(-12deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes ssx-sweep {
  0%        { left: -70%; }
  14%, 100% { left: 130%; }
}
