@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette - Vibrant Tech Organic Green */
  --primary-color: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.4);
  
  --bg-dark-1: #022c22;
  --bg-dark-2: #064e3b;
  
  --text-light: #f8fafc;
  --text-dark-primary: #1e293b;
  --text-dark-secondary: #475569;
  
  --border-light: rgba(255, 255, 255, 0.1);
  --border-input: #e2e8f0;
  
  --card-radius: 24px;
  --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.login-body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 30% 20%, var(--bg-dark-2) 0%, var(--bg-dark-1) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Blobs */
.ambient-blobs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  animation: floatBlob 22s infinite alternate ease-in-out;
}

.blob-1 {
  background: var(--primary-color);
  top: -10%;
  left: -10%;
}

.blob-2 {
  background: #0ea5e9; /* Teal/Blue soft glow */
  bottom: -10%;
  right: -10%;
  animation-delay: -7s;
  animation-duration: 26s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, 40px) scale(1.15);
  }
  100% {
    transform: translate(-40px, -60px) scale(0.9);
  }
}

/* Login Card Wrapper */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  z-index: 5;
}

.login-card {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 520px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-speed) ease;
}

/* Brand Panel (Left Panel) */
.login-brand-panel {
  flex: 1.25;
  background: linear-gradient(135deg, #f4fdf8 0%, #e6f4ed 100%);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.login-brand-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 80%);
  pointer-events: none;
}

.brand-logo-large {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.05));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo-large:hover {
  transform: scale(1.04) rotate(1deg);
}

.brand-title-text {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #a7f3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle-text {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 280px;
  line-height: 1.6;
  font-weight: 300;
}

/* Form Panel (Right Panel) */
.login-form-panel {
  flex: 1;
  padding: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.mobile-logo-header {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-bottom: 35px;
}

.mobile-logo-img {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.mobile-brand-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bg-dark-1);
  letter-spacing: 0.5px;
}

.login-form-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-form-subtitle {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--text-dark-secondary);
  margin-bottom: 35px;
  font-weight: 400;
}

/* Form Styling */
.form-group-custom {
  position: relative;
  margin-bottom: 28px;
}

.form-input-custom.form-control {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-bottom: 2px solid var(--border-input);
  padding: 12px 4px 8px;
  font-family: var(--font-body);
  font-size: 1.55rem;
  color: var(--text-dark-primary);
  background: transparent;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  transition: border-color var(--transition-speed) ease;
}

.form-input-custom.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
  outline: 0;
  background-color: transparent;
}

.form-label-custom {
  position: absolute;
  left: 4px;
  top: 14px;
  font-family: var(--font-body);
  font-size: 1.45rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all var(--transition-speed) ease;
}

/* Floating Label Logic */
.form-input-custom:focus ~ .form-label-custom,
.form-input-custom:valid ~ .form-label-custom,
.form-input-custom:not(:placeholder-shown) ~ .form-label-custom {
  top: -12px;
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Button Submit style */
.btn-submit-custom {
  width: 100%;
  height: 50px;
  background: #33666c;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px -6px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  outline: none;
  letter-spacing: 0.5px;
}

.btn-submit-custom:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 24px -4px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-submit-custom:active {
  transform: translateY(0);
}

.btn-submit-custom:disabled {
  background: #cbd5e1;
  box-shadow: none;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

/* Notification styling override */
#notification {
  margin-bottom: 25px;
  min-height: 48px;
}

.successmsg, .errormsg {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--font-body);
  display: block !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.successmsg {
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
}

.errormsg {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

/* Responsive Media Queries */
@media (max-width: 800px) {
  .login-card {
    flex-direction: column;
    max-width: 440px;
    min-height: auto;
  }
  
  .login-brand-panel {
    display: none; /* Hide left brand panel on mobile */
  }
  
  .mobile-logo-header {
    display: flex;
  }
  
  .login-form-panel {
    padding: 45px 35px;
  }
  
  .login-form-title {
    text-align: center;
    font-size: 1.8rem;
  }
  
  .login-form-subtitle {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 400px) {
  .login-wrapper {
    padding: 16px;
  }
  
  .login-form-panel {
    padding: 35px 24px;
  }
}
