:root {
  --bg-dark: #060b17;
  --bg-card: rgba(13, 22, 41, 0.75);
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-purple: #a855f7;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.12);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body.login-page-redesign {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Glowing Lights */
.login-ambient-light {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: floatPulse 12s ease-in-out infinite alternate;
}

.glow-sphere--1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, #0284c7 0%, rgba(2, 132, 199, 0) 70%);
}

.glow-sphere--2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
  animation-delay: -6s;
}

.glow-sphere--3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
  opacity: 0.25;
}

@keyframes floatPulse {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.35;
  }

  100% {
    transform: scale(1.15) translateY(-30px);
    opacity: 0.55;
  }
}

/* Split-Screen Main Layout */
.login-split-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  min-height: 660px;
  margin: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 28px;
  background: rgba(11, 19, 38, 0.65);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  animation: cardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Left Hero Showcase */
.login-hero-showcase {
  position: relative;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, rgba(6, 13, 27, 0.85) 0%, rgba(14, 29, 58, 0.7) 100%);
  border-right: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.2) contrast(1.1);
  mix-blend-mode: luminosity;
  transition: transform 10s ease-out;
}

.login-split-wrapper:hover .hero-bg-media {
  transform: scale(1.05);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 23, 0.6) 0%, rgba(7, 13, 25, 0.95) 100%);
}

.hero-content-top {
  position: relative;
  z-index: 2;
}

.hero-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.hero-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
}

.hero-brand-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
}

.hero-main-title {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 440px;
}

.hero-footer-features {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.hero-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Right Form Card */
.login-form-side {
  position: relative;
  z-index: 2;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(10, 18, 35, 0.5);
}

.form-header-box {
  margin-bottom: 2rem;
}

.form-header-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.form-header-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Form Fields */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.form-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 16px;
  color: #64748b;
  transition: color 0.2s ease;
  pointer-events: none;
}

.form-control-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  background: rgba(15, 26, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  font-family: var(--font-family);
  font-size: 0.98rem;
  color: #ffffff;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control-input::placeholder {
  color: #64748b;
}

.form-control-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(18, 32, 60, 0.95);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25), inset 0 0 0 1px var(--accent-cyan);
}

.form-control-input:focus+.form-input-icon,
.form-input-container:focus-within .form-input-icon {
  color: var(--accent-cyan);
}

/* Password Toggle Button */
.pwd-toggle-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.pwd-toggle-btn:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.form-row-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.85rem;
}

.form-forgot-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.form-forgot-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Submit Button */
.btn-submit-login {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  border: none;
  border-radius: 14px;
  font-family: var(--font-family);
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-submit-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.55), 0 0 25px rgba(56, 189, 248, 0.4);
}

.btn-submit-login:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn-submit-login:hover .btn-arrow {
  transform: translateX(4px);
}

/* Alerts */
.login-alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
  animation: alertSlide 0.4s ease;
}

@keyframes alertSlide {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.login-alert--info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.login-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer Links */
.form-footer-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-back-web {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.btn-back-web:hover {
  color: var(--accent-cyan);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #64748b;
}

/* Responsive Queries */
@media (max-width: 960px) {
  .login-split-wrapper {
    grid-template-columns: 1fr;
    max-width: 480px;
    min-height: auto;
    margin: 1.25rem;
    border-radius: 24px;
  }

  .login-hero-showcase {
    display: none;
  }

  .login-form-side {
    padding: 2.5rem 1.75rem;
  }

  .mobile-logo-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
  }
}

.mobile-logo-header {
  display: none;
}