/* Import Modern Google Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --font-family-sans-serif: 'Outfit', sans-serif;
  --ment-neon: #3b82f6;
  --ment-neon-glow: rgba(59, 130, 246, 0.4);
  --ment-dark-bg: #0a0f1d;
  --ment-card-bg: #131a30;
  --ment-text-primary: #ffffff;
  --ment-text-secondary: #94a3b8;
  --ment-text-muted: #64748b;
  --ment-border: rgba(255, 255, 255, 0.08);
  --ment-border-focus: #3b82f6;

  /* Right Panel Light Theme Variables */
  --form-bg: #f8fafc;
  --form-card-bg: #ffffff;
  --form-text-primary: #0f172a;
  --form-text-secondary: #475569;
  --form-text-muted: #64748b;
  --form-border: #e2e8f0;
  --form-input-bg: #ffffff;
  --form-input-border: #cbd5e1;
}

body {
  font-family: var(--font-family-sans-serif) !important;
  background-color: var(--ment-dark-bg) !important;
  color: var(--ment-text-primary) !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100vh;
}

/* 2-Column Split Layout - Left side (Branding) remains premium Dark Theme */
.branding-panel {
  background-color: var(--ment-dark-bg);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 10% 20%, rgba(10, 15, 29, 1) 0%, rgba(13, 22, 45, 1) 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-position: center center;
  border-right: 1px solid var(--ment-border);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Gradient glowing blob decoration */
.branding-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.branding-header,
.branding-content,
.branding-footer {
  position: relative;
  z-index: 2;
}

.max-width-text {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.max-width-form {
  max-width: 420px;
}

/* Right Panel (Form) - Light Theme */
.form-panel {
  background-color: var(--form-bg);
  min-height: 100vh;
}

/* Typography & Content styling */
.branding-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowText 4s ease-in-out infinite alternate;
}

.branding-description {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ment-text-secondary);
  font-weight: 300;
}

.text-muted-custom {
  color: var(--form-text-muted) !important;
}

/* Logos */
.ment-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ment-logo-mobile {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.fallback-logo-css {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.fallback-logo-css-mobile {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--form-text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.logo-accent {
  color: var(--ment-neon);
  text-shadow: 0 0 15px var(--ment-neon-glow);
}

.mobile-brand-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--form-text-primary);
  margin-bottom: 0.5rem;
}

/* Light Card Form */
.form-accounts {
  background: var(--form-card-bg);
  border: 1px solid var(--form-border);
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  max-width: 100% !important;
  min-width: 300px;
}

.form-accounts:hover {
  border-color: rgba(0, 221, 166, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 221, 166, 0.05), 0 8px 10px -6px rgba(0, 221, 166, 0.05);
}

/* Inputs & Labels Custom Styling (Light mode) */
.form-label {
  color: var(--form-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.form-control {
  background-color: var(--form-input-bg) !important;
  border: 1px solid var(--form-input-border) !important;
  color: var(--form-text-primary) !important;
  border-radius: 0.75rem !important;
  padding: 0.85rem 1rem !important;
  height: auto !important;
  font-family: var(--font-family-sans-serif);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus {
  border-color: var(--ment-neon) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

/* Primary "Sign In" Button with Micro-interactions */
.btn-primary {
  background-color: var(--ment-dark-bg) !important;
  border: 1px solid rgba(0, 221, 166, 0.6) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: 0.75rem !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(10, 15, 29, 0.08) !important;
  width: 100%;
}

.btn-primary:hover {
  background-color: #111a36 !important;
  border-color: var(--ment-neon) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25) !important;
}

.btn-primary:active {
  transform: translateY(0);
  background-color: #070c18 !important;
  border-color: rgba(59, 130, 246, 0.8) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.15) !important;
}

/* Links & Secondary Buttons (High contrast for light background) */
.accent-link {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.accent-link:hover {
  color: #1d4ed8 !important;
}

.btn-link {
  color: var(--form-text-secondary) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: #2563eb !important;
}

.btn-secondary {
  background-color: #ffffff !important;
  border: 1px solid var(--form-input-border) !important;
  color: var(--form-text-primary) !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1.5rem !important;
  transition: all 0.2s ease !important;
  width: 100%;
}

.btn-secondary:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Alerts custom styling */
.alert {
  border-radius: 0.75rem !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.15) !important;
}

/* Animations */
@keyframes glowText {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  }
  100% {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  }
}

/* Responsive adjustment for Mobile screens */
@media (max-width: 991.98px) {
  body {
    overflow-y: auto;
    background-color: var(--form-bg) !important;
  }
  .form-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .form-accounts {
    padding: 2rem 1.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}
