.cotigo-auth-login-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
}

.cotigo-auth-box {
  width: min(430px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  box-shadow: 0 16px 46px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.cotigo-auth-head {
  padding: 24px 26px 16px;
  border-bottom: 1px solid #dce3ec;
  background: #fbfcfe;
}

.cotigo-auth-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.cotigo-auth-sub {
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
}

.cotigo-auth-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cotigo-auth-body label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.cotigo-auth-body input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16px;
  outline: none;
}

.cotigo-auth-body input:focus {
  border-color: #9fb7d8;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .12);
}

.cotigo-auth-password-wrap {
  position: relative;
  display: block;
  margin-top: 7px;
}

.cotigo-auth-password-wrap input {
  margin-top: 0;
  padding-right: 48px;
}

.cotigo-auth-password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 30px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: #4b5563;
  cursor: pointer;
}

.cotigo-auth-password-toggle:hover {
  background: #eef5ff;
  color: #1f2937;
}

.cotigo-auth-body button {
  height: 40px;
  border: 1px solid #dce3ec;
  background: #fff;
  border-radius: 10px;
  padding: 0 13px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
}

.cotigo-auth-body button:hover {
  background: #eef5ff;
  border-color: #c7d6ea;
}

.cotigo-auth-primary {
  width: 100%;
  margin-top: 4px;
}

.cotigo-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cotigo-auth-row span {
  font-size: 13px;
  color: #6b7280;
}

.cotigo-auth-link {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  color: #2563eb !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.cotigo-auth-message {
  display: none;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #4b5563;
  background: #fbfcfe;
}

.cotigo-auth-message.show {
  display: block;
}

.cotigo-auth-message.error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.cotigo-user-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: 0;
}

.cotigo-user-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  box-sizing: border-box;
  border: 1px solid #dce3ec;
  background: #fbfcfe;
  border-radius: 10px;
  padding: 0 12px;
  text-align: left;
  color: #1f2937;
  cursor: pointer;
  overflow: hidden;
}

.cotigo-user-button:hover {
  background: #eef5ff;
  border-color: #c7d6ea;
}

.cotigo-user-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cotigo-user-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 3600;
  width: 176px;
  box-sizing: border-box;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
  padding: 6px;
}

.cotigo-user-menu[hidden] {
  display: none;
}

.cotigo-user-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.cotigo-user-menu button:hover {
  background: #eef5ff;
  color: #1d4ed8;
}

.cotigo-user-submenu-wrap {
  position: relative;
}

.cotigo-user-language-current {
  margin-left: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.cotigo-user-submenu {
  position: absolute;
  left: calc(100% + 8px);
  bottom: 0;
  z-index: 3610;
  width: 132px;
  box-sizing: border-box;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
  padding: 6px;
  display: none;
}

.cotigo-user-submenu-wrap:hover .cotigo-user-submenu,
.cotigo-user-submenu-wrap:focus-within .cotigo-user-submenu {
  display: block;
}

.cotigo-user-submenu button.is-active {
  background: #eef5ff;
  color: #1d4ed8;
}

.cotigo-user-logout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .42);
}

.cotigo-user-logout-dialog {
  width: min(320px, calc(100vw - 32px));
  box-sizing: border-box;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
  padding: 22px;
}

.cotigo-user-logout-dialog h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  color: #111827;
}

.cotigo-user-logout-dialog p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.cotigo-user-logout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.cotigo-user-logout-actions button {
  height: 38px;
  border: 1px solid #dce3ec;
  background: #fff;
  border-radius: 10px;
  padding: 0 16px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cotigo-user-logout-actions button:hover {
  background: #eef5ff;
  border-color: #c7d6ea;
}

.cotigo-user-logout-actions .danger {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.cotigo-user-logout-actions .danger:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
