/* ── register.css ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  background: #060810;
  color: #c0ccd8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background: swirl wallpaper ─────────────────────────────────────────── */
body {
  background-image: url('/resources/images/bg-swirl.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 14, 0.62);
  pointer-events: none;
  z-index: 0;
}

/* ── Center layout ───────────────────────────────────────────────────────── */
.register-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
}

/* ── Card — transparent, only border ────────────────────────────────────── */
.card {
  background: transparent;
  border: 1px solid rgba(210, 225, 245, 0.22);
  border-radius: 4px;
  padding: 20px 22px 16px;
  width: 100%;
  max-width: 360px;
  position: relative;
}

/* ── Card header: logo centered like profile picture ────────────────────── */
.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.card-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(210, 225, 245, 0.20);
  padding: 8px;
  background: rgba(4, 6, 14, 0.45);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.card-divider {
  border: none;
  border-top: 1px solid rgba(180, 200, 230, 0.14);
  margin: 10px 0 12px;
}

/* ── Input groups ────────────────────────────────────────────────────────── */
.input-group { margin-bottom: 11px; }

label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(160,180,210,0.65);
  margin-bottom: 4px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.optional { color: rgba(150,170,200,0.35); font-size: 9.5px; font-weight: 400; letter-spacing: 0.5px; }

/* ── Inputs — match background, no hover/focus glow ─────────────────────── */
input {
  width: 100%;
  background: rgba(4, 6, 14, 0.48);
  border: 1px solid rgba(200, 215, 235, 0.12);
  border-radius: 3px;
  color: #b8c8d8;
  padding: 8px 10px;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: inherit;
  outline: none;
  transition: none;
}
input:focus {
  border-color: rgba(200, 215, 235, 0.12);
  box-shadow: none;
}
input::placeholder { color: rgba(90,115,150,0.30); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #060c1a inset !important;
  -webkit-text-fill-color: #b8c8d8 !important;
  caret-color: #b8c8d8;
}

/* ── Captcha ─────────────────────────────────────────────────────────────── */
.captcha-row { display: flex; gap: 8px; align-items: center; margin-bottom: 13px; }
.captcha-img {
  border: 1px solid rgba(200,215,235,0.12);
  border-radius: 3px; height: 44px; width: 148px;
  display: block; user-select: none; flex-shrink: 0; background: rgba(2,2,6,0.7);
}
.captcha-input-container { position: relative; flex: 1; }
.captcha-refresh {
  position: absolute; right: 7px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(150,175,210,0.40); font-size: 15px;
  cursor: pointer; padding: 0; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: none;
}
.captcha-row input { height: 44px; padding: 0 30px 0 10px; letter-spacing: 2px; }

/* ── Submit button — no hover ────────────────────────────────────────────── */
.btn {
  width: 100%;
  background: rgba(200, 215, 235, 0.07);
  border: 1px solid rgba(200, 215, 235, 0.20);
  border-radius: 3px;
  color: rgba(200, 215, 235, 0.75);
  padding: 9px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: none;
}
.btn:hover { background: rgba(200, 215, 235, 0.07); border-color: rgba(200, 215, 235, 0.20); color: rgba(200, 215, 235, 0.75); }
.btn:active { opacity: 0.85; }

/* ── Bottom link — left-aligned ──────────────────────────────────────────── */
.bottom-text {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(180,200,230,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.text-muted {
  font-size: 10px;
  color: rgba(140,160,190,0.50);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.login-link {
  color: rgba(160,190,225,0.80);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: none;
}
.login-link:hover { color: rgba(160,190,225,0.80); }

/* ── Status message ──────────────────────────────────────────────────────── */
.msg-response { margin-top: 8px; font-size: 12px; text-align: center; min-height: 16px; }

/* ── Success modal (credentials) ─────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(2, 5, 14, 0.72); z-index: 1000;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-box {
  background: transparent;
  border: 1px solid rgba(210, 225, 245, 0.22);
  border-radius: 4px;
  padding: 20px 22px 18px;
  max-width: 330px; width: 90%;
  position: relative;
}
.close-btn {
  position: absolute; top: 10px; right: 10px;
  background: transparent; border: 1px solid rgba(200,215,235,0.18);
  color: rgba(160,180,210,0.5); width: 24px; height: 24px;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: none;
}
.close-btn:hover { border-color: rgba(200,215,235,0.18); color: rgba(160,180,210,0.5); }

.success-header {
  text-align: center; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(200,215,235,0.12);
}
.check-icon { margin: 0 auto 6px; display: block; }
.success-header h2 { font-size: 14px; font-weight: 400; color: #c8d8e8; margin: 0; }

.credentials { margin-bottom: 10px; }
.cred-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; border-bottom: 1px solid rgba(200,215,235,0.07);
}
.cred-item:last-child { border-bottom: none; }
.cred-icon { color: rgba(150,175,210,0.35); flex-shrink: 0; }
.cred-label { color: rgba(150,170,200,0.55); font-size: 10px; font-weight: 500; min-width: 65px; flex-shrink: 0; }
.cred-value {
  flex: 1; color: #b8cad8;
  font-family: 'Courier New', monospace; font-size: 11px; word-break: break-all;
}
.copy-btn {
  background: transparent; border: 1px solid rgba(180,200,225,0.18);
  color: rgba(150,175,210,0.45); border-radius: 3px;
  width: 20px; height: 20px; display: flex;
  align-items: center; justify-content: center;
  cursor: pointer; transition: none;
  padding: 0; flex-shrink: 0;
}
.copy-btn:hover { border-color: rgba(180,200,225,0.18); color: rgba(150,175,210,0.45); }

.modal-actions {
  display: flex; gap: 6px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid rgba(200,215,235,0.10);
}
.action-btn {
  flex: 1; padding: 8px 10px; border-radius: 3px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: rgba(200, 215, 235, 0.07);
  border: 1px solid rgba(200, 215, 235, 0.20);
  color: rgba(200, 215, 235, 0.75);
  font-family: inherit; transition: none;
}
.action-btn:hover { background: rgba(200, 215, 235, 0.07); border-color: rgba(200, 215, 235, 0.20); color: rgba(200, 215, 235, 0.75); }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,215,235,0.15); border-radius: 3px; }

/* ── Footer — transparent, match bg, centered, bigger ───────────────────── */
.footer {
  background: transparent !important;
  border-top: 1px solid rgba(200,215,235,0.10) !important;
  color: rgba(180,200,225,0.45) !important;
  text-align: center !important;
  padding: 26px 20px !important;
  position: relative;
  z-index: 1;
}
.footer .container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.footer p,
.footer p[style] {
  color: rgba(180,200,225,0.45) !important;
  font-size: 12px !important;
  text-align: center !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .card { padding: 16px 14px 14px; }
  .captcha-img { width: 110px; }
}
