/* Login specific background to ensure premium feel regardless of app bg */
.login-body {
  background: var(--bg);
  overflow: hidden;
}

.login-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  height: 100vh;
  width: 100%;
}

/* Left Branding Panel */
.login-brand-panel {
  position: relative;
  background: #0B1120;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
}

/* Ambient Gold Glows */
.brand-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(63, 181, 173, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.brand-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.login-brand-panel .brand { color: #ECEFF6; margin-bottom: auto; }

.brand-tagline { margin-bottom: 48px; }
.brand-tagline h2 { 
  font-size: 48px; 
  color: #ECEFF6; 
  line-height: 1.1; 
  margin-bottom: 16px; 
  font-weight: 500; 
}
.brand-tagline p { 
  font-size: 18px; 
  color: #8A97B4; 
  line-height: 1.5; 
  max-width: 480px; 
}

.brand-footer { font-size: 13px; color: #4A5568; }

/* Right Form Panel */
.login-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg);
  position: relative;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-top: 80px; /* Offset for vertical centering */
}

.form-header h1 { 
  font-size: 36px; 
  margin-bottom: 8px; 
  font-weight: 500; 
}
.form-header p { 
  color: var(--text-muted); 
  font-size: 15px; 
}

.login-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { 
  font-size: 12px; 
  color: var(--text-muted); 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  font-weight: 600; 
}

.label-row { display: flex; justify-content: space-between; align-items: center; }

.link-btn { 
  background: none; 
  border: none; 
  color: var(--accent); 
  font-size: 12px; 
  font-weight: 500; 
  cursor: pointer; 
  padding: 0; 
  transition: color 0.2s; 
  text-decoration: none;
}
.link-btn:hover { color: var(--gold); text-decoration: underline; }

.form-actions { margin-top: 12px; }
.form-actions .btn { padding: 14px 24px; font-size: 15px; }

/* WhatsApp Recovery Message */
.whatsapp-msg {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 1;
  transform: translateY(0);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 200px;
}
.whatsapp-msg.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  max-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  overflow: hidden;
}

.wa-icon { 
  width: 40px; height: 40px; 
  background: rgba(37, 211, 102, 0.1); 
  border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; 
  font-size: 20px; 
  flex-shrink: 0;
}
.wa-text { display: flex; flex-direction: column; gap: 4px; }
.wa-text strong { font-size: 14px; color: var(--text); }
.wa-text p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.wa-link { 
  font-family: 'JetBrains Mono', monospace; 
  font-size: 13px; 
  color: #25D366; 
  font-weight: 600; 
  margin-top: 4px; 
  text-decoration: none;
}
.wa-link:hover { text-decoration: underline; }

.form-footer { 
  text-align: center; 
  font-size: 13px; 
  color: var(--text-muted); 
  padding-bottom: 24px;
}

/* Powered By Footer */
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: 32px;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.kodon-logo {
  height: 16px; /* Adjust this height if your 200px logo looks too big/small */
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.powered-by:hover .kodon-logo {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .login-container { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { padding: 24px; }
  .form-wrapper { padding-top: 0; }
}

/* Adjusting form inputs for login context */
.login-form .input {
  background: var(--surface);
  border-color: var(--border);
  padding: 14px 16px;
}
.login-form .input:focus {
  border-color: var(--gold);
}