:root {
  --bg-soft: #f4f7f9;
  --primary-blue: #4384f5;
  --primary-dark: #2a6ae0;
  --text-main: #334155;
  --text-muted: #64748b;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-soft);
  color: var(--text-main);
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.display-font {
  font-family: "Raleway", sans-serif;
}

.logo {
  width: 100%;
}

/* Main Container: Split Screen */
.login-container {
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  max-height: 700px;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
}

/* --- SISI KIRI: BRANDING & VISUAL --- */
.login-visual {
  flex: 1.2;
  background: linear-gradient(135deg, #85aaea 0%, #5d80df 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
}

/* Subtil Pattern Overlay */
.login-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"><circle cx="3" cy="3" r="3"/><circle cx="13" cy="13" r="3"/></g></svg>');
  opacity: 0.5;
}

.visual-header {
  z-index: 10;
}

.visual-footer {
  z-index: 10;
  margin-top: auto;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tagline h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- SISI KANAN: FORM LOGIN --- */
.login-form-section {
  flex: 1;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header mb-5 {
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-weight: 800;
  color: var(--text-main);
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Soft UI Input Styling */
.form-floating > .form-control {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  border-radius: 0.75rem;
  font-weight: 500;
  padding-left: 1.2rem;
  transition: all 0.2s;
}

.form-floating > .form-control:focus {
  background-color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(67, 132, 245, 0.1);
}

.form-floating > label {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

/* Input Icon Integration */
.input-group-custom {
  position: relative;
  margin-bottom: 1.25rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 10;
  font-size: 1.1rem;
}

.input-group-custom .form-control {
  padding-left: 3rem !important;
}

.input-group-custom label {
  padding-left: 3rem !important;
}

/* Password Toggle Icon */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--primary-blue);
}

/* Tombol Masuk */
.btn-login {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 2rem;
  padding: 0.8rem;
  width: 100%;
  margin-top: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(67, 132, 245, 0.2);
}

.btn-login:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(67, 132, 245, 0.3);
}

/* Link Lupa Password & Utilitas */
.form-utils {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-utils a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.form-utils a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Checkbox Custom */
.form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Footer Kanan */
.login-footer-right {
  margin-top: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- RESPONSIVE HANDLER --- */
@media (max-width: 991.98px) {
  .login-container {
    height: auto;
    max-height: none;
    flex-direction: column;
    margin: 2rem;
  }

  .login-visual {
    padding: 2rem;
    flex: none;
    height: 250px;
  }

  .tagline h1 {
    font-size: 2rem;
  }

  .tagline p {
    display: none;
  }

  .login-form-section {
    padding: 3rem 2rem;
    flex: none;
  }

  .visual-footer {
    display: none;
  }
}
