/* ============================================================
   Login.module.css
   Dark Glassmorphism Aesthetic
   Prefix: log_
   ============================================================ */

:root {
  --log-font: 'Inter', 'Segoe UI', sans-serif;
  --log-slate-dark: #0f172a;
  --log-slate-gray: #475569;
  --log-slate-light: #94a3b8;
  --log-white: #ffffff;
  --log-gray-soft: #f8fafc;
  --log-gray-border: rgba(255, 255, 255, 0.1);
  --log-indigo: #4f46e5;
  --log-cyan: #06b6d4;
  --log-cyan-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --log-shadow-card: 0 30px 60px rgba(0, 0, 0, 0.4);
  --log-radius: 24px;
  --log-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.log_page {
  margin: 0;
  font-family: var(--log-font);
  background: var(--log-slate-dark);
  color: var(--log-white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  overflow: hidden;
  color-scheme: dark;
}

/* Background Glowing Orbs */
.log_bg_orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: floatOrb 20s infinite alternate ease-in-out;
  opacity: 0.5;
}

.log_bg_orb_1 {
  width: 500px;
  height: 500px;
  background: var(--log-indigo);
  top: -150px;
  left: -100px;
}

.log_bg_orb_2 {
  width: 400px;
  height: 400px;
  background: var(--log-cyan);
  bottom: -100px;
  right: -50px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -40px) scale(1.1); }
}

.log_container {
  width: 100%;
  max-width: 1000px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--log-radius);
  box-shadow: var(--log-shadow-card);
  overflow: hidden;
  display: flex;
  min-height: 600px;
  position: relative;
  z-index: 10;
  animation: log_fade_up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes log_fade_up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Left Panel: Split-Screen Redesign --- */
.log_visual {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.log_visual::before {
  content: "";
  position: absolute;
  inset: 0;
  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);
  background-size: 40px 40px;
  pointer-events: none;
}

.log_brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 10;
  text-decoration: none;
  color: var(--log-white);
}

.log_quote_wrap {
  position: relative;
  z-index: 10;
  max-width: 320px;
}

.log_quote {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  background: var(--log-cyan-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.log_quote_sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.6;
}

/* --- Right Panel: Form UI --- */
.log_form_panel {
  flex: 1;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.log_head {
  margin-bottom: 40px;
}

.log_head h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--log-white);
  margin: 0 0 8px;
}

.log_head p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 1rem;
}

/* Alerts */
.log_alert {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.log_alert_success {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.log_alert_error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Form Controls */
.log_field {
  margin-bottom: 24px;
}

.log_label_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.log_label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.log_link {
  color: var(--log-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--log-transition);
}

.log_link:hover {
  color: var(--log-white);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

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

.log_input {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--log-white);
  font-family: var(--log-font);
  transition: all var(--log-transition);
}

.log_input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Fix Browser Autofill Background */
.log_input:-webkit-autofill,
.log_input:-webkit-autofill:hover, 
.log_input:-webkit-autofill:focus, 
.log_input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
    -webkit-text-fill-color: var(--log-white) !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.log_input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--log-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.log_pwd_toggle {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color var(--log-transition);
}

.log_pwd_toggle:hover {
  color: var(--log-white);
}

.log_btn {
  width: 100%;
  background: var(--log-cyan-gradient);
  color: var(--log-white);
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--log-transition);
  margin-top: 16px;
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
  position: relative;
  overflow: hidden;
}

.log_btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--log-transition);
}

.log_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
}

.log_btn:hover::after {
  opacity: 1;
}

.log_switch {
  margin-top: 32px;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .log_container {
    flex-direction: column;
    min-height: auto;
  }
  .log_visual {
    padding: 40px;
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .log_form_panel {
    padding: 40px;
  }
}

@media (max-width: 480px) {
  .log_form_panel {
    padding: 32px 24px;
  }
  .log_visual {
    padding: 32px 24px;
  }
  .log_quote {
    font-size: 1.75rem;
  }
}
