.ct-auth,
.ct-auth * { box-sizing: border-box; }

.ct-auth { max-width: 520px; margin: 64px auto; padding: 0 16px; }

.ct-auth .ct-form {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ct-auth .ct-auth-note {
  max-width: 520px;
  margin: 64px auto;
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.ct-auth .ct-hp { display: none; }

.ct-auth .ct-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
  opacity: .9;
}

.ct-auth .ct-input {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  outline: none;
  box-shadow: none;
  font-size: 14px;
  line-height: 48px;
  margin: 0;
}

.ct-auth .ct-input:focus {
  border-color: rgba(79, 70, 229, 0.65);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

/* Select arrow: wrapper-based (arrow 20px from right) */
.ct-auth .ct-select { position: relative; }
.ct-auth .ct-select select.ct-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  padding-right: 56px;
}
.ct-auth .ct-select:after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ct-auth select.ct-input::-ms-expand { display: none; }

/* Password toggle: force absolute so it never becomes a square below */
.ct-auth .ct-pass { position: relative !important; }
.ct-auth .ct-pass .ct-input { padding-right: 54px; }

.ct-auth .ct-pass-toggle {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 34px !important;
  height: 34px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  cursor: pointer !important;
  line-height: 0 !important;
  color: rgba(15, 23, 42, 0.75) !important;
  opacity: .9 !important;
}

.ct-auth .ct-pass-toggle:hover { opacity: 1 !important; }
.ct-auth .ct-pass-toggle svg { width: 20px; height: 20px; display: block; pointer-events: none; }

.ct-auth .ct-btn {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: #4f46e5;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.18);
}

.ct-auth .ct-btn:hover { filter: brightness(1.03); }
.ct-auth .ct-btn:active { transform: translateY(1px); }

.ct-auth .ct-links {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.7);
}

.ct-auth .ct-links a { color: #4f46e5; text-decoration: none; font-weight: 650; }
.ct-auth .ct-links a:hover { text-decoration: underline; }
.ct-auth .ct-sep { margin: 0 8px; opacity: .5; }

.ct-auth .ct-msg { margin-bottom: 14px; padding: 12px; border-radius: 12px; font-size: 13px; }
.ct-auth .ct-msg-success { background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.22); color: #065f46; }
.ct-auth .ct-msg-error { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.22); color: #7f1d1d; }

.ct-auth .ct-logout-link { display: inline-flex; align-items: center; text-decoration: none; font-weight: 650; color: #4f46e5; }