/* Client Manager - Auth UI (Login + Registration Tabs)
   Designed to match the provided screenshot style.
*/

.cm-auth-wrap {
  font-family: 'Hind Siliguri', sans-serif;
  width: 100%;
  padding: 40px 14px;
  display: flex;
  justify-content: center;
}

.cm-auth-card {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.cm-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f7f7fb;
}

.cm-auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 18px 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #6b7280;
  position: relative;
}

.cm-auth-tab.is-active {
  color: #111827;
  background: #ffffff;
}

.cm-auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #2d2bbd;
}

.cm-auth-body {
  padding: 22px 22px 26px;
}

.cm-auth-panel {
  display: none;
}

.cm-auth-panel.is-active {
  display: block;
}

.cm-auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 12px 0 6px;
}

.cm-auth-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  background: #ffffff;
}

.cm-auth-form input:focus {
  border-color: #2d2bbd;
  box-shadow: 0 0 0 4px rgba(45, 43, 189, 0.12);
}

.cm-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cm-auth-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: #2d2bbd;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.12s ease;
}

.cm-auth-btn:hover {
  opacity: 0.95;
}

.cm-auth-btn:active {
  transform: translateY(1px);
}

.cm-auth-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cm-auth-alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 520px) {
  .cm-auth-body {
    padding: 18px 16px 22px;
  }
  .cm-auth-grid {
    grid-template-columns: 1fr;
  }
}
