*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100vh;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-wrapper {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.login-panel {
  flex: 0 0 500px;
  width: 500px;
  max-width: 500px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.login-panel-inner {
  width: 100%;
  max-width: 100%;
}

.login-brand {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
  text-align: center;
}

.login-brand-text {
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: var(--leiten-font-brand, 'Playfair Display', Georgia, serif);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--leiten-red, #c92127);
  line-height: 1.15;
  letter-spacing: -0.3px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.login-brand-img {
  display: block;
  width: auto;
  height: 110px;
  max-width: 100%;
  margin: 0 auto;
}

.login-form-container {
  width: 100%;
  max-width: 100%;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form .form-group {
  margin-bottom: 0;
}

.login-form .form-group input {
  width: 100%;
  height: 40px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #495057;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.password-field-wrap {
  position: relative;
}

.password-field-wrap input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #adb5bd;
  cursor: pointer;
  transition: color 0.15s;
}

.password-toggle:hover {
  color: #495057;
}

.password-toggle i {
  font-size: 15px;
  pointer-events: none;
}

.login-form .form-group input:focus {
  border-color: #3b71ca;
  box-shadow: 0 0 0 0.2rem rgba(59, 113, 202, 0.25);
}

.login-form .form-group input::placeholder {
  color: #adb5bd;
}

.login-form .help-block {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
}

.login-form .has-error input {
  border-color: #dc3545;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4b4f56;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-login:hover {
  background: #33363b;
  color: #fff;
}

.btn-login i {
  font-size: 14px;
}

.login-illustration {
  flex: 1 1 auto;
  min-width: 0;
  background: linear-gradient(180deg, #4b4f56 0%, #3c3f45 50%, #33363b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.login-illustration img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
  }

  .login-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .login-illustration {
    display: none;
  }
}
