/* Import Font (jika diperlukan, 'Inter' sudah bagus) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.auth-body {
  background-color: #f4f7f9;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.auth-container {
  width: 100%;
  max-width: 960px; /* Lebar konsisten untuk semua card */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.auth-card {
  display: flex;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 600px; /* Tinggi konsisten */
  width: 100%;
  max-width: 100%;
}

/* Kolom Ilustrasi (50%) */
.auth-illustration-section {
  flex: 0 0 50%;
  background: linear-gradient(135deg, #eef2ff 0%, #f4f7f9 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.auth-illustration-section img {
  max-width: 100%;
  height: auto;
}

/* Kolom Form (50%) */
.auth-form-section {
  flex: 0 0 50%;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  height: 5rem;
  width: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 5rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a232e;
  margin-bottom: 10px;
}

.auth-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #344054;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 1rem;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #213977;
  box-shadow: 0 0 0 3px rgba(33, 57, 119, 0.1);
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
  font-size: 1.2rem;
}

.auth-button {
  width: 100%;
  background: #213977;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  margin-top: 10px;
}

.auth-button:hover {
  background: #1a2d5f;
  transform: translateY(-2px);
}

.auth-link {
  text-align: center;
  margin-top: 20px;
}

.auth-link a {
  color: #213977;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link a:hover {
  text-decoration: underline;
  color: #1a2d5f;
}

/* Additional centering for webkit browsers */
body.auth-body::-webkit-scrollbar {
  display: none;
}

/* Ensure proper centering across all browsers */
html, body.auth-body {
  height: 100%;
  overflow-x: hidden;
}

/* Additional centering fixes */
body.auth-body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive Design */
@media (max-width: 992px) {
  .auth-illustration-section {
    display: none; /* Sembunyikan gambar di layar kecil */
  }

  .auth-form-section {
    flex: 1;
    padding: 40px;
  }

  .auth-card {
    min-height: auto;
  }

  .auth-container {
    margin: 1rem;
  }
}

@media (max-width: 576px) {
  .auth-form-section {
    padding: 30px 25px;
  }

  .auth-title {
    font-size: 1.8rem;
  }

  .auth-container {
    margin: 0.5rem;
  }
}
