/* Overall wrapper – centers the card */
.clp-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
}

/* Card */
.clp-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Heading */
.clp-heading h2 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.clp-heading p {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6b7280;
}

/* Form */
.clp-form {
  margin: 0;
}

/* Form group */
.clp-form-group {
  margin-bottom: 16px;
}

.clp-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

/* Input fields */
.clp-form-group input[type="email"],
.clp-form-group input[type="password"],
.clp-form-group input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 10px 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.clp-form-group input::placeholder {
  color: #9ca3af;
}

.clp-form-group input:focus {
  border-color: #f97316; /* Orange accent */
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}

/* Password wrapper: SVG icon embedded inside field */
.clp-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.clp-password-wrapper input {
  padding-right: 46px; /* space for icon */
  border-radius: 999px;
}

.clp-password-toggle {
  all: unset;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  width: 22px;
  height: 22px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.clp-password-toggle:hover {
  color: #111827;
}

.clp-eye-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.clp-password-toggle.clp-password-visible {
  color: #f97316;
}

/* Meta row (remember + forgot) */
.clp-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}

.clp-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  cursor: pointer;
}

.clp-remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #f97316;
  cursor: pointer;
}

.clp-forgot-link {
  text-decoration: none;
  color: #f97316;
  font-weight: 500;
}

.clp-forgot-link:hover {
  text-decoration: underline;
}

/* Button */
.clp-actions {
  margin-top: 8px;
}

.clp-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.clp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(249, 115, 22, 0.55);
}

.clp-btn:active {
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.4);
}

.clp-btn:disabled,
.clp-btn.clp-btn-loading {
  opacity: 0.8;
  cursor: default;
  box-shadow: none;
}

.clp-btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: clp-spin 0.7s linear infinite;
  display: none;
}

.clp-btn.clp-btn-loading .clp-btn-spinner {
  display: inline-flex;
}

.clp-btn.clp-btn-loading .clp-btn-label {
  opacity: 0.85;
}

@keyframes clp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Alert messages */
.clp-alert {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  display: none;
}

.clp-alert.clp-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.clp-alert.clp-success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .clp-card {
    padding: 24px 18px 20px;
    border-radius: 14px;
  }

  .clp-heading h2 {
    font-size: 22px;
  }

  .clp-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
