:root {
  --primary-color: #0ea5e9;
  --secondary-color: #6366f1;
  --accent-color: #10b981;
  --glass-bg: rgba(15, 23, 42, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body.login-page {
  background: #020617;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.fullscreen-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../img/modern_bg.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  animation: fadeIn 1s var(--ease-out-expo);
}

.form-left {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 100px;
  color: white;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.2);
}

.form-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/modern_left_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.6; /* Increased opacity */
  z-index: -1;
  transition: transform 10s ease-out;
}

.login-wrapper:hover .form-left::before {
  transform: scale(1.1);
}

.form-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    linear-gradient(to right, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.4));
  z-index: -1;
}

/* Grid Accessory */
.form-left .grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  opacity: 0.3;
}

/* Scanning Light Accessory */
.form-left .scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(14, 165, 233, 0.2), transparent);
  animation: scan 8s infinite linear;
  z-index: -1;
}

@keyframes scan {
  from { top: -10%; }
  to { top: 110%; }
}

.login-form-section {
  flex: 0.9;
  padding: 80px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.login-logo-modern {
  font-size: 4rem; /* Increased font size */
  font-weight: 800;
  color: white;
  margin-bottom: 0.8rem;
  letter-spacing: -2px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 1.6rem; /* Increased for better hierarchy */
  margin-bottom: 4rem;
  font-weight: 300;
}

.form-group-modern {
  margin-bottom: 2.5rem;
  position: relative;
}

.form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 1.4rem; /* Increased significantly for clarity */
  font-weight: 600; /* Bolder weight */
  margin-bottom: 15px;
  margin-left: 10px;
  letter-spacing: 0.5px;
}

.input-modern {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 22px 30px 22px 70px;
  color: white;
  transition: all 0.5s var(--ease-out-expo);
  font-size: 1.3rem; /* Increased font size */
}

.input-modern:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.15);
  outline: none;
  transform: translateX(5px);
}

.input-icon {
  position: absolute;
  left: 30px;
  bottom: 24px;
  color: var(--text-secondary);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.btn-modern {
  width: 100%;
  padding: 22px;
  border-radius: 100px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.6s var(--ease-out-expo);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.3rem; /* Increased font size */
}

.btn-primary-modern {
  background: #1e293b;
  color: white;
  border: 1px solid var(--glass-border);
}

.btn-primary-modern:hover {
  background: #0f172a;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.btn-outline-modern {
  background: rgba(255, 255, 255, 0.03);
  color: white;
  border: 1px solid var(--glass-border);
}

.btn-outline-modern:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.clock-modern {
  text-align: left;
}

#jam-modern {
  font-size: 7rem; /* Significantly increased for clarity */
  font-weight: 800;
  line-height: 1;
  margin: 15px 0;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.date-modern {
  font-size: 1.8rem; /* Increased font size */
  color: var(--text-secondary);
}

.visitor-info {
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.visitor-id {
  color: white;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
}

@media (max-width: 992px) {
  .login-wrapper {
    flex-direction: column;
    overflow-y: auto;
  }
  .form-left, .login-form-section {
    flex: none;
    padding: 60px 40px;
  }
  #jam-modern {
    font-size: 4rem;
  }
}

.smooth-fade {
  animation: fadeInUp 1s var(--ease-out-expo) forwards;
  opacity: 0;
}

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