/* Lab Login V3 Styles - Medical SaaS Overhaul */
:root {
  --primary-blue: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --text-title: #1a1a1a;
  --text-subtitle: #6b7280;
  --input-bg: #f9fafb;
  --input-border: #e5e7eb;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="red"] {
  --primary-blue: #c62828;
  --primary-dark: #b71c1c;
  --primary-light: #ffebee;
}
[data-theme="red"] .auth-v3-wrapper {
  background-image: url("../img/auth/lab_login_v3_bg_red.png");
}

[data-theme="green"] {
  --primary-blue: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #f0fdf4;
}
[data-theme="green"] .auth-v3-wrapper {
  background-image: url("../img/auth/lab_login_v3_bg_green.png");
}

[data-theme="indigo"] {
  --primary-blue: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
}
[data-theme="indigo"] .auth-v3-wrapper {
  background-image: url("../img/auth/lab_login_v3_bg_indigo.png");
}

[data-theme="orange"] {
  --primary-blue: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #fff7ed;
}
[data-theme="orange"] .auth-v3-wrapper {
  background-image: url("../img/auth/lab_login_v3_bg_orange.png");
}

[data-theme="pink"] {
  --primary-blue: #db2777;
  --primary-dark: #be185d;
  --primary-light: #fdf2f8;
}
[data-theme="pink"] .auth-v3-wrapper {
  background-image: url("../img/auth/lab_login_v3_bg_pink.png");
}

[data-theme="gradient"] {
  --primary-blue: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #f5f3ff;
}
[data-theme="gradient"] .auth-v3-wrapper {
  background-image: url("../img/auth/lab_login_v3_bg_gradient.png");
}


body.auth-v3-body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  background-color: white;
  overflow: hidden;
}

.auth-v3-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  background-image: url("../img/auth/lab_login_v3_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 15px;
}

.auth-v3-content {
  position: relative;
  z-index: 10;
  padding-right: 5%; /* Right position */
  width: 100%;
  max-width: 500px;
}

/* The Elevated SaaS Card */
.login-card-v3 {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.75); /* Translucent for glassmorphism */
  backdrop-filter: blur(16px) saturate(180%); /* Premium frosted effect */
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 20px;
  padding: 30px 40px 45px 40px; /* Reduced top padding inside card */
  width: 100%;
  max-width: 420px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.4); /* Defined glass edge */
  overflow: hidden; /* Contain particles */
  animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card-v3 form,
.login-card-v3 .sil-brand-v3,
.login-card-v3 .text-start,
.login-card-v3 .mt-5 {
  position: relative;
  z-index: 5; /* Clearly above particles */
}

@keyframes slide-up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* SIL Branding Polished */
.sil-brand-v3 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 35px;
}

.sil-logo-v3 {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 800;
}

.sil-name-v3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.5px;
}

.form-title-v3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.form-subtitle-v3 {
  color: var(--text-subtitle);
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* SaaS Inputs */
.input-group-v3 {
  margin-bottom: 25px;
}

.label-v3 {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151; /* Darker labels */
  margin-bottom: 8px;
}

.input-wrapper-v3 {
  position: relative !important; /* Force relative for icons */
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-v3 {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: #9ca3af;
  z-index: 10;
  pointer-events: none;
}

.sil-input-v3 {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  color: var(--text-title);
  transition: all 0.2s ease;
}

.sil-input-v3:focus {
  border-color: var(--primary-blue);
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.sil-input-v3:focus + .input-icon-v3 {
  color: var(--primary-blue);
}

/* SaaS Button */
.sil-btn-v3 {
  width: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-blue),
    var(--primary-dark)
  );
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.sil-btn-v3:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  filter: brightness(1.05);
}

.sil-btn-v3 i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.sil-btn-v3:hover i {
  transform: translateX(3px);
}

/* Horizontal Action Bar */
.auth-actions-v3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.lupa-sandi-v3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
}

.lupa-sandi-v3:hover {
  text-decoration: underline;
}

/* Fixed Footer Styling */
.auth-v3-footer {
  position: fixed;
  bottom: 8px; /* Firmly at the bottom edge */
  width: 100%;
  text-align: center;
  color: rgba(107, 114, 128, 0.6); /* Slightly more visible but still subtle */
  font-size: 13px;
  z-index: 20;
  pointer-events: none;
}

.auth-v3-footer .fw-bold {
  color: var(--primary-dark);
  font-weight: 700 !important;
}

/* Responsiveness */
@media (max-width: 991px) {
  .auth-v3-wrapper {
    background-position: left center;
    justify-content: center;
    align-items: center;
  }
  .auth-v3-content {
    padding-right: 0;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }
  .auth-v3-footer {
    position: relative;
    bottom: 0;
    margin-top: 40px;
    margin-bottom: 20px;
  }
}

/* Theme Switcher for Login */
.auth-theme-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.4);
}

.auth-theme-switcher .color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.auth-theme-switcher .color-dot:hover {
  transform: scale(1.2);
}

.auth-theme-switcher .color-dot.active {
  border-color: #333;
}

.dot-blue { background: #0ea5e9; }
.dot-red { background: #c62828; }
.dot-green { background: #16a34a; }
.dot-indigo { background: #4f46e5; }
.dot-orange { background: #ea580c; }
.dot-pink { background: #db2777; }
.dot-gradient { background: linear-gradient(45deg, #8b5cf6, #3b82f6); }

