/* ═══════════════════════════════════════════════════
   VoraCMS · Login — Soft Dark + Orange
   ═══════════════════════════════════════════════════ */

/* --------- Login images --------- */
.s-login-brand-img {
  height: 48px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
}

.s-login-footer-img {
  display: inline-block;
  height: 18px;
  width: auto;
  vertical-align: middle;
  margin-left: 4px;
}

/* --------- Login wrapper --------- */
.s-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s-bg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Orange glow orbs */
.s-login::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.03) 40%, transparent 70%);
  top: -200px;
  right: -150px;
  border-radius: 50%;
  pointer-events: none;
}

.s-login::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 60%);
  bottom: -150px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

/* --------- Login card --------- */
.s-login-card {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.s-login-card .card {
  padding: 4px;
  background: var(--s-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--s-border);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.s-login-card .card-body {
  padding: 40px 36px;
}

/* --------- Brand --------- */
.s-login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.s-login-brand h5 {
  font-weight: 700;
  color: var(--s-text);
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 1.15rem;
}

.s-login-brand p {
  color: var(--s-text-secondary);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

/* --------- Login form labels --------- */
.s-login-card .form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-text-label);
  margin-bottom: 7px;
}

/* --------- Login form inputs --------- */
.s-login-card .form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--s-input-radius);
  padding: 12px 14px;
  color: #fff;
  font-size: 0.875rem;
  transition:
    border-color var(--s-transition),
    background var(--s-transition);
}

.s-login-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.s-login-card .form-control:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
  color: #fff;
}

/* --------- Login button --------- */
.s-login-card .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  box-shadow:
    0 8px 28px rgba(249, 115, 22, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-height: 56px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.s-login-card .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fdba74 0%, #fb923c 50%, #f97316 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  border-radius: inherit;
}

.s-login-card .btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow:
    0 12px 36px rgba(249, 115, 22, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.s-login-card .btn-primary:hover::before {
  opacity: 1;
}

.s-login-card .btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.s-login-card .btn-primary > * {
  position: relative;
  z-index: 1;
}

/* --------- Toast --------- */
.s-toast-login {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid var(--s-danger-border);
  margin-bottom: 16px;
  animation: sToastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-toast-login-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s-toast-login-icon i {
  color: var(--s-danger);
  font-size: 1.1rem;
  font-weight: 700;
}

.s-toast-login-body {
  flex: 1;
  min-width: 0;
}

.s-toast-login-label {
  color: var(--s-danger);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3px;
}

.s-toast-login-msg {
  color: var(--s-text-secondary);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
}

/* --------- Animation --------- */
@keyframes sToastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



/* --------- Footer & Legal Links --------- */
.s-login-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--s-text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s-login-footer strong {
  color: var(--s-text-secondary);
}

.s-login-legal-links {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.s-legal-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.s-legal-link {
  color: var(--s-text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  transition: all var(--s-transition);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
}

.s-legal-link:hover {
  color: var(--s-accent);
  border-bottom-color: var(--s-accent);
}

.s-legal-link--landing {
  color: rgba(249, 115, 22, 0.85);
  border-bottom-style: solid;
  border-bottom-color: rgba(249, 115, 22, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.s-legal-link--landing:hover {
  color: #fb923c;
  border-bottom-color: #fb923c;
}

.s-brand-link {
  display: inline-block;
  vertical-align: middle;
  transition: opacity var(--s-transition), transform var(--s-transition);
}

.s-brand-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* --------- Login Topbar (Language Switcher) --------- */
.s-login-topbar {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
}

/* --------- Legal Modal Backdrop & Box --------- */
.s-legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: sFadeIn 0.25s ease-out;
}

.s-legal-modal {
  background: #141416;
  border: 1px solid var(--s-border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: sModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.s-legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--s-border);
  background: rgba(255, 255, 255, 0.02);
}

.s-legal-icon {
  color: var(--s-accent);
  font-size: 1.25rem;
}

.s-legal-modal-header h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--s-text);
}

.s-legal-close {
  background: transparent;
  border: none;
  color: var(--s-text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--s-transition);
}

.s-legal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.s-legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.s-legal-section h6 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--s-text);
  margin-bottom: 6px;
}

.s-legal-section p {
  font-size: 0.82rem;
  color: var(--s-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.s-legal-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--s-border);
  background: rgba(255, 255, 255, 0.02);
}

@keyframes sFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sModalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------- Responsive --------- */
@media (max-width: 768px) {
  .s-login-card .card-body {
    padding: 24px 20px;
  }
  .s-login-topbar {
    top: 16px;
    right: 16px;
  }
}
