/* Account cards, controls and shared frontend primitives. */
.rahul-plugin-ui {
  display: flow-root;
  width: 100%;
  min-width: 0;
  padding-bottom: 15px;
  margin: 0;
  color: var(--rahul-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Devanagari", Arial, sans-serif;
}

.rahul-plugin-ui,
.rahul-plugin-ui *,
.rahul-plugin-ui *::before,
.rahul-plugin-ui *::after {
  box-sizing: border-box;
}

.rahul-plugin-ui a,
.rahul-plugin-ui a:hover,
.rahul-plugin-ui a:focus,
.rahul-plugin-ui a:active,
.rahul-plugin-ui a:visited {
  text-decoration: none !important;
}

.rahul-plugin-ui a:focus-visible,
.rahul-plugin-ui button:focus-visible,
.rahul-plugin-ui input:focus-visible,
.rahul-plugin-ui select:focus-visible,
.rahul-plugin-ui textarea:focus-visible {
  outline: 3px solid rgba(24, 201, 237, 0.35) !important;
  outline-offset: 2px;
}

.rahul-plugin-ui .rahul-account-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100% - 24px, 1120px);
  min-height: 570px;
  margin: 30px auto;
  padding: 42px 20px;
  overflow: hidden;
  border: 1px solid rgba(21, 120, 255, 0.13);
  border-radius: var(--rahul-radius-xl);
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94)),
    linear-gradient(90deg, rgba(21, 120, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(21, 120, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 10% 20%, rgba(24, 201, 237, 0.36), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.30), transparent 34%);
  background-size: auto, 28px 28px, 28px 28px, auto, auto;
  box-shadow: var(--rahul-shadow-medium);
}

.rahul-plugin-ui .rahul-account-panel::before,
.rahul-plugin-ui .rahul-account-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.48;
}

.rahul-plugin-ui .rahul-account-panel::before {
  top: -130px;
  right: -70px;
  background: rgba(139, 92, 246, 0.36);
}

.rahul-plugin-ui .rahul-account-panel::after {
  bottom: -150px;
  left: -70px;
  background: rgba(24, 201, 237, 0.34);
}

.rahul-plugin-ui .rahul-account-card {
  position: relative;
  width: min(100%, var(--rahul-account-card-width));
  padding: 31px;
  color: #eef7ff;
  border: 1px solid transparent;
  border-radius: var(--rahul-radius-large);
  background:
    linear-gradient(150deg, rgba(7, 17, 31, 0.98), rgba(13, 27, 51, 0.98)) padding-box,
    linear-gradient(120deg, var(--rahul-cyan), var(--rahul-blue), var(--rahul-violet), var(--rahul-cyan)) border-box;
  background-size: auto, 240% 240%;
  box-shadow: var(--rahul-shadow-large);
  animation: rahul-account-enter 240ms ease both, rahul-account-border 8s linear infinite;
}

.rahul-plugin-ui .rahul-account-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

.rahul-plugin-ui .rahul-account-card > * {
  position: relative;
  z-index: 1;
}

.rahul-plugin-ui .rahul-account-card h1,
.rahul-plugin-ui .rahul-account-card h2 {
  margin: 12px 0 7px;
  color: #ffffff;
  font-size: clamp(27px, 5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.rahul-plugin-ui .rahul-account-card h2 {
  font-size: 27px;
}

.rahul-plugin-ui .rahul-account-subtitle,
.rahul-plugin-ui .rahul-account-message p {
  margin: 0;
  color: #a9bad0;
  font-size: 14px;
  line-height: 1.62;
}

.rahul-plugin-ui .rahul-account-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 21px;
}

.rahul-plugin-ui .rahul-account-brand strong,
.rahul-plugin-ui .rahul-account-brand small {
  display: block;
}

.rahul-plugin-ui .rahul-account-brand strong {
  color: #ffffff;
  font-size: 14px;
}

.rahul-plugin-ui .rahul-account-brand small {
  margin-top: 3px;
  color: #8ca2bd;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rahul-plugin-ui .rahul-account-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rahul-violet), var(--rahul-blue), var(--rahul-cyan));
  box-shadow: 0 13px 30px rgba(21, 120, 255, 0.31);
  font-size: 13px;
  font-weight: 900;
}

.rahul-plugin-ui .rahul-account-form {
  display: grid;
  gap: 16px;
  margin-top: 25px;
}

.rahul-plugin-ui .rahul-account-field {
  display: grid;
  gap: 7px;
}

.rahul-plugin-ui .rahul-account-field label {
  color: #d7e4f3;
  font-size: 12px;
  font-weight: 800;
}

.rahul-plugin-ui .rahul-account-field > small,
.rahul-plugin-ui .rahul-account-help {
  margin: 0;
  color: #8398b3;
  font-size: 10.5px;
  line-height: 1.45;
}

.rahul-plugin-ui .rahul-account-control {
  position: relative;
}

.rahul-plugin-ui .rahul-account-control > span {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #7893b4;
  transform: translateY(-50%);
  pointer-events: none;
}

.rahul-plugin-ui .rahul-account-control svg,
.rahul-plugin-ui .rahul-ui-secondary svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rahul-plugin-ui .rahul-account-control input {
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 46px 0 43px !important;
  color: #f8fbff !important;
  border: 1px solid rgba(174, 203, 238, 0.23) !important;
  border-radius: var(--rahul-radius-medium) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.rahul-plugin-ui .rahul-account-control input::placeholder {
  color: #6f86a3;
}

.rahul-plugin-ui .rahul-account-control input:focus {
  border-color: rgba(24, 201, 237, 0.82) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 0 0 4px rgba(24, 201, 237, 0.11) !important;
}

.rahul-plugin-ui .rahul-account-password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 7px !important;
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 8px !important;
  color: #91a6c1 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  cursor: pointer;
}

.rahul-plugin-ui .rahul-account-password-toggle:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.rahul-plugin-ui .rahul-account-password-toggle svg {
  display: block;
  width: 19px;
  height: 19px;
}

.rahul-plugin-ui .rahul-account-submit,
.rahul-plugin-ui .rahul-account-secondary,
.rahul-plugin-ui .rahul-ui-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border-radius: var(--rahul-radius-medium) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  transition: transform 200ms ease, filter 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.rahul-plugin-ui .rahul-account-submit {
  color: #ffffff !important;
  border: 0 !important;
  background: linear-gradient(110deg, var(--rahul-violet), var(--rahul-blue), var(--rahul-cyan)) !important;
  background-size: 180% 180% !important;
  box-shadow: 0 13px 30px rgba(21, 120, 255, 0.27) !important;
}

.rahul-plugin-ui .rahul-account-secondary,
.rahul-plugin-ui .rahul-ui-secondary {
  color: #dfeeff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  box-shadow: none !important;
}

.rahul-plugin-ui .rahul-account-submit:hover,
.rahul-plugin-ui .rahul-account-secondary:hover,
.rahul-plugin-ui .rahul-ui-secondary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.rahul-plugin-ui .rahul-account-submit.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

.rahul-plugin-ui .rahul-account-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rahul-account-spin 700ms linear infinite;
}

.rahul-plugin-ui .is-loading .rahul-account-spinner {
  display: inline-block;
}

.rahul-plugin-ui .rahul-account-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a7b7cb;
  font-size: 12px;
}

.rahul-plugin-ui .rahul-account-check input {
  width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  accent-color: var(--rahul-cyan);
}

.rahul-plugin-ui .rahul-account-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rahul-plugin-ui .rahul-account-foot,
.rahul-plugin-ui .rahul-account-links {
  color: #94a7c0;
  font-size: 12px;
}

.rahul-plugin-ui .rahul-account-foot {
  margin-top: 20px;
  padding-top: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.rahul-plugin-ui .rahul-account-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.rahul-plugin-ui .rahul-account-foot a,
.rahul-plugin-ui .rahul-account-links a {
  color: #62e1fa !important;
  font-weight: 800;
}

.rahul-plugin-ui .rahul-account-alert {
  margin-top: 18px;
  padding: 12px 13px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.rahul-plugin-ui .rahul-account-alert-success {
  color: #bdf7d1;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.11);
}

.rahul-plugin-ui .rahul-account-alert-error {
  color: #ffd0da;
  border: 1px solid rgba(239, 71, 111, 0.30);
  background: rgba(239, 71, 111, 0.12);
}

.rahul-plugin-ui .rahul-account-alert-info {
  color: #c8f2ff;
  border: 1px solid rgba(24, 201, 237, 0.25);
  background: rgba(24, 201, 237, 0.10);
}

.rahul-plugin-ui .rahul-account-support {
  margin-top: 20px;
  padding: 16px;
  color: #e9f5ff;
  border: 1px solid rgba(24, 201, 237, 0.20);
  border-radius: 15px;
  background: rgba(24, 201, 237, 0.055);
}

.rahul-plugin-ui .rahul-account-support p {
  margin: 7px 0 13px;
  color: #9eb0c7;
  font-size: 12px;
  line-height: 1.55;
}

.rahul-plugin-ui .rahul-account-strength {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 9px;
}

.rahul-plugin-ui .rahul-account-strength::before {
  content: "";
  grid-column: 1;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #263954;
}

.rahul-plugin-ui .rahul-account-strength span {
  position: absolute;
  width: 0;
}

.rahul-plugin-ui .rahul-account-strength small {
  grid-column: 2;
  grid-row: 1;
  color: #8296b0;
  font-size: 10px;
}

.rahul-plugin-ui .rahul-account-strength[data-score="1"]::before { background: linear-gradient(90deg, var(--rahul-red) 20%, #263954 20%); }
.rahul-plugin-ui .rahul-account-strength[data-score="2"]::before { background: linear-gradient(90deg, #f59e0b 40%, #263954 40%); }
.rahul-plugin-ui .rahul-account-strength[data-score="3"]::before { background: linear-gradient(90deg, #eab308 60%, #263954 60%); }
.rahul-plugin-ui .rahul-account-strength[data-score="4"]::before { background: linear-gradient(90deg, var(--rahul-cyan) 80%, #263954 80%); }
.rahul-plugin-ui .rahul-account-strength[data-score="5"]::before { background: var(--rahul-green); }

.rahul-plugin-ui .rahul-account-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.rahul-plugin-ui .rahul-account-message {
  text-align: center;
}

.rahul-plugin-ui .rahul-ui-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.rahul-plugin-ui .rahul-ui-status-success {
  color: #baf7cf;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.11);
}

.rahul-plugin-ui .rahul-ui-login-required {
  max-width: 620px;
  margin: 30px auto;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--rahul-line);
  border-radius: var(--rahul-radius-large);
  background: #ffffff;
  box-shadow: var(--rahul-shadow-small);
}

.rahul-plugin-ui .rahul-ui-login-required a {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 20px;
  color: #ffffff !important;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rahul-blue), var(--rahul-cyan));
}

.rahul-plugin-ui .rahul-ui-autofill-note {
  display: inline-block;
  padding: 8px 10px;
  color: #8a3418;
  border-radius: 8px;
  background: #fff7ed;
  font-size: 12px;
}

@keyframes rahul-account-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rahul-account-border {
  to { background-position: 0 0, 240% 50%; }
}

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