:root {
  --primary-navy: #0d1726;
  --secondary-navy: #132238;
  --card-bg: rgba(19, 34, 56, 0.85);
  --accent-gold: #d4af37;
  --accent-gold-hover: #e5c158;
  --accent-gold-gradient: linear-gradient(135deg, #c59b27 0%, #e6bd4d 50%, #c59b27 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.12);
  --input-border-focus: #d4af37;
  --error-bg: rgba(239, 68, 68, 0.12);
  --error-border: rgba(239, 68, 68, 0.35);
  --error-text: #fca5a5;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-family);
  background-color: var(--primary-navy);
  color: var(--text-main);
  overflow-x: hidden;
}

/* MAIN SPLIT CONTAINER */
.login-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--primary-navy);
}

/* LEFT SIDE: LOGIN SECTION */
.login-left {
  flex: 0 0 45%;
  max-width: 45%;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(26, 46, 75, 0.4) 0%, rgba(13, 23, 38, 0.95) 90%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 50px;
  position: relative;
  z-index: 2;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.35);
}

/* Brand header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-logo-wrap {
  background: #192736;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.brand-logo-wrap:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.brand-logo-wrap img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Form Area */
.login-form-wrapper {
  width: 100%;
  max-width: 440px;
  margin: auto 0;
  padding: 20px 0;
}

.welcome-heading {
  margin-bottom: 28px;
}

.welcome-heading h1 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.welcome-heading h1 span {
  color: var(--accent-gold);
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-heading p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Alert Error Box */
.alert-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.4;
  animation: shakeAlert 0.4s ease-in-out;
}

.alert-error svg {
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Input Fields */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

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

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.input-container:focus-within .input-icon {
  color: var(--accent-gold);
}

/* Password Toggle Button */
.password-toggle-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}

/* Form Helper Row */
.form-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 28px;
  font-size: 13px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.remember-label input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.help-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.help-link:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Submit Button */
.btn-login {
  width: 100%;
  padding: 15px 24px;
  background: var(--accent-gold-gradient);
  color: #0b131e;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(197, 155, 39, 0.35);
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 155, 39, 0.5);
  filter: brightness(1.05);
}

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

.btn-login svg {
  transition: transform 0.3s ease;
}

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

/* Footer note */
.login-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
}

/* RIGHT SIDE: HERO VISUAL SHOWCASE */
.login-right {
  flex: 0 0 55%;
  max-width: 55%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #060b13;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

.login-right:hover .hero-image-wrap img {
  transform: scale(1.08);
}

/* Subtle Edge Blend for Hero Image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 23, 38, 0.35) 0%,
    rgba(13, 23, 38, 0.05) 25%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Right Side Floating Content */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 60px;
}

.hero-badge-top {
  align-self: flex-end;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(13, 23, 38, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Glass Feature Card at Bottom */
.hero-glass-card {
  background: rgba(13, 23, 38, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 32px 36px;
  max-width: 620px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-glass-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero-glass-card h2 span {
  color: var(--accent-gold);
}

.hero-glass-card p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Stats Row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .login-left {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 30px;
  }
  .login-right {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .hero-content {
    padding: 30px;
  }
  .hero-glass-card {
    padding: 24px;
  }
}

@media (max-width: 860px) {
  .login-page {
    flex-direction: column-reverse;
  }
  .login-left {
    flex: 0 0 100%;
    max-width: 100%;
    min-height: auto;
    padding: 40px 24px;
    box-shadow: none;
  }
  .login-right {
    flex: 0 0 300px;
    max-width: 100%;
    min-height: 280px;
  }
  .hero-glass-card {
    display: none;
  }
  .hero-content {
    padding: 20px;
    justify-content: flex-start;
  }
  .welcome-heading h1 {
    font-size: 26px;
  }
}
