/* Header acente bar */
.main-header.header-refined .header-account {
  flex-shrink: 0;
}

.agent-bar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 38px;
  padding: 4px 6px 4px 10px;
  border: 1px solid rgba(36, 59, 74, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.agent-bar--login {
  padding: 5px 14px 5px 5px;
  text-decoration: none;
}

.agent-bar--login:hover {
  border-color: rgba(77, 165, 40, 0.35);
  box-shadow: 0 4px 14px rgba(77, 165, 40, 0.12);
  background: #fff;
}

.agent-bar__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-right: 8px;
  margin-right: 2px;
  border-right: 1px solid rgba(36, 59, 74, 0.08);
}

.agent-bar__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4DA528 0%, #3d8a20 100%);
  color: #fff;
  font-size: 12px;
}

.agent-bar__avatar--outline {
  background: rgba(77, 165, 40, 0.08);
  border: 1px solid rgba(77, 165, 40, 0.22);
  color: #4DA528;
}

.agent-bar__name,
.agent-bar__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #243b4a;
  letter-spacing: 0.01em;
  text-transform: none;
}

.agent-bar__name {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-bar__label {
  margin-left: 8px;
  white-space: nowrap;
}

.agent-bar__user--link {
  text-decoration: none !important;
  color: inherit;
}

.agent-bar__user--link:hover .agent-bar__name {
  color: #4DA528;
}

.agent-bar__logout {
  margin: 0;
}

.agent-bar__logout button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a9aa8;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.agent-bar__logout button:hover {
  background: rgba(255, 151, 13, 0.12);
  color: #d97706;
}

.agent-bar__logout button i {
  font-size: 13px;
}

.mobile-agent-auth {
  display: none;
  padding: 14px 18px 6px;
}

.agent-bar--mobile {
  width: 100%;
  justify-content: space-between;
}

.agent-bar--mobile.agent-bar--login {
  justify-content: flex-start;
}

.agent-bar--mobile .agent-bar__name {
  max-width: none;
}

@media only screen and (max-width: 991px) {
  .mobile-agent-auth {
    display: block;
  }
}

@media only screen and (max-width: 1199px) {
  .agent-bar__label {
    font-size: 12px;
  }

  .agent-bar__name {
    max-width: 108px;
  }
}

/* Login page */
.agent-login-page {
  padding: 56px 16px 88px;
  background:
    radial-gradient(circle at top right, rgba(77, 165, 40, 0.06), transparent 28%),
    linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
}

.agent-login-shell {
  max-width: 440px;
  margin: 0 auto;
}

.agent-login-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7c89;
  text-decoration: none;
  transition: color 0.2s ease;
}

.agent-login-back:hover {
  color: #4DA528;
}

.agent-login-back i {
  font-size: 12px;
}

.agent-login-card {
  padding: 34px 30px 28px;
  border: 1px solid rgba(36, 59, 74, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.agent-login-card__head {
  text-align: center;
  margin-bottom: 28px;
}

.agent-login-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(77, 165, 40, 0.1);
  border: 1px solid rgba(77, 165, 40, 0.18);
  color: #4DA528;
  font-size: 18px;
}

.agent-login-card__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  color: #1f3340;
  letter-spacing: -0.02em;
}

.agent-login-card__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #728292;
}

.agent-login-form {
  margin-top: 4px;
}

.agent-login-field {
  margin-bottom: 18px;
}

.agent-login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a9aa8;
}

.agent-login-input {
  position: relative;
  display: flex;
  align-items: center;
}

.agent-login-input > i:first-child {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: #9aa8b3;
  pointer-events: none;
}

.agent-login-input input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 42px;
  border: 1px solid rgba(36, 59, 74, 0.12);
  border-radius: 12px;
  background: #fbfcfc;
  font-size: 14px;
  color: #243b4a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.agent-login-input input::placeholder {
  color: #a8b4bd;
}

.agent-login-input input:focus {
  outline: none;
  border-color: rgba(77, 165, 40, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(77, 165, 40, 0.1);
}

.agent-login-toggle {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a9aa8;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.agent-login-toggle:hover {
  background: rgba(36, 59, 74, 0.06);
  color: #4DA528;
}

.agent-login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.agent-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.agent-login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #4DA528;
}

.agent-login-remember span {
  font-size: 13px;
  color: #5f7080;
}

.agent-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4DA528 0%, #439622 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.agent-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(77, 165, 40, 0.22);
  background: linear-gradient(135deg, #56b52f 0%, #4DA528 100%);
}

.agent-login-submit i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.agent-login-submit:hover i {
  transform: translateX(2px);
}

.agent-login-footnote {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(36, 59, 74, 0.08);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: #8a9aa8;
}

.agent-login-footnote a {
  color: #4DA528;
  font-weight: 600;
  text-decoration: none;
}

.agent-login-footnote a:hover {
  color: #3d8a20;
}

.agent-auth-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.agent-auth-alert p + p {
  margin-top: 6px;
}

.agent-auth-alert--error {
  background: #fff5f5;
  border: 1px solid #f1caca;
  color: #9b2c2c;
}

.agent-auth-alert--info {
  background: #f3f8ff;
  border: 1px solid #cfe0ff;
  color: #2457a6;
}

.agent-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media only screen and (max-width: 575px) {
  .agent-login-page {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .agent-login-card {
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .agent-login-card__title {
    font-size: 24px;
  }
}
