:root {
  --primary-color: #0ea5e9;
  --secondary-color: #0284c7;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #0ea5e9;
  --login-color: #ba810b;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-image: url("https://cdn.jsdelivr.net/gh/vizitripdotcom/assets@0.1.10/templates/img/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.login-left {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.login-right {
  flex: 1;
  background-image: url("https://cdn.jsdelivr.net/gh/vizitripdotcom/assets@0.1.11/templates/img/gambar-login.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  color: white;
  position: relative;
}

.login-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 110, 184, 0.8) 0%,
    rgba(2, 78, 131, 0.7) 100%
  );
  z-index: 0;
}

.brand-logo {
  font-size: 2.5rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0;
  z-index: 1;
  position: relative;
  color: white;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.brand-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.welcome-subtitle {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-control {
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

/* Input group - first child (icon) */
.input-group > .input-group-text:first-child {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-right: none;
  border-radius: 12px 0 0 12px !important;
  color: #6b7280;
}

/* Input group - middle element (input field) */
.input-group > .form-control {
  border-left: none;
  border-radius: 0 !important;
}

/* Input group with only 2 elements - last input should be rounded on right */
.input-group > .form-control:last-child {
  border-radius: 0 12px 12px 0 !important;
}

/* Input group with 3 elements - input in middle should have no right border */
.input-group > .form-control:not(:last-child) {
  border-right: none;
}

/* Toggle password button - last child in password input group */
.input-group > .input-group-text#togglePassword {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-left: none;
  border-radius: 0 12px 12px 0 !important;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.input-group > .input-group-text#togglePassword:hover {
  background: #e5e7eb;
  color: #374151;
}

.btn-login {
  background: linear-gradient(
    135deg,
    var(--login-color) 0%,
    var(--login-color) 100%
  );
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.demo-card {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.demo-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.demo-accounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.demo-account {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.demo-account-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.demo-account-info {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.register-link {
  text-align: center;
  margin-top: 2rem;
}

.register-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.register-link a:hover {
  text-decoration: underline;
}

.alert {
  border-radius: 12px;
  border: none;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    margin: 20px;
    border-radius: 16px;
  }

  .login-left {
    padding: 40px 20px;
  }

  .login-right {
    padding: 40px 20px;
  }

  .demo-accounts {
    grid-template-columns: 1fr;
  }
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.feature-list i {
  margin-right: 0.75rem;
  opacity: 0.8;
}

/* Global Placeholder Styling */
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
  font-style: italic;
}

/* Cross-browser compatibility */
.form-control::-webkit-input-placeholder,
.form-select::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
  font-style: italic;
}

.form-control:-moz-placeholder,
.form-select:-moz-placeholder,
textarea:-moz-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
  font-style: italic;
}

.form-control::-moz-placeholder,
.form-select::-moz-placeholder,
textarea::-moz-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
  font-style: italic;
}

.form-control:-ms-input-placeholder,
.form-select:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
  font-style: italic;
}
