/* UNIVERSAL */
* { box-sizing: border-box; }
:root {
  --primary: #8a79e2;
  --muted: #ada5b4;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(#181624, #000);
  color: white;
}

/* Background visuals */
.blob {
  position: fixed;
  width: 80vw;
  max-width: 540px;
  opacity: 0.25;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit {
  position: fixed;
  width: 90vw;
  max-width: 680px;
  height: 90vw;
  max-height: 680px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 50s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit::before,
.orbit::after {
  content: "";
  width: 20px;
  height: 20px;
  background: #a0cac7;
  border-radius: 50%;
  position: absolute;
}
.orbit::before { top: 50%; left: -10px; }
.orbit::after  { top: 50%; right: -10px; }

/* SIGN-UP CARD */
.login {
  width: 480px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 60px 34px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 65px 0;
  animation: fadeIn .6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* LOGO */
.logo {
  width: 150px;
  margin-top: -65px;
  margin-bottom: -12px;
}

/* ROLE SELECT — modern clean buttons */
.role-select {
  display: flex;
  gap: 10px;
  margin: 18px 0 26px;
}

.role-btn {
  flex: 1;
  position: relative;
  font-size: 14px;
  padding: 11px 0;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.10);
  color: #bfbccb;
  transition: 0.32s ease;
}

.role-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
}

.role-btn.active {
  color: #fff;
  border-color: var(--primary);
  background: rgba(138, 121, 226, 0.18);
  box-shadow: 0 0 10px rgba(138, 121, 226, 0.40);
  transform: translateY(-3px);
}

/* Underline animation */
.role-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 4px;
  transition: 0.35s ease;
}
.role-btn.active::after {
  width: 60%;
  left: 20%;
}

/* TEXTS */
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 13px; margin: 6px 0 30px; color: var(--muted); }

/* INPUT CONTAINER */
.form { display: grid; gap: 14px; width: 100%; }
.textbox { position: relative; }

/* INPUTS & SELECT BASE STYLE */
.textbox input,
.textbox select {
  width: 100%;
  height: 46px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: transparent;
  color: white;
  padding: 10px 12px 0 12px;
  font-size: 15px;
  outline: none;
  transition: .2s;
}

/* LABEL */
.textbox label {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: .2s;
}

/* FLOATING LABEL ANIMATION */
.textbox input.filled + label,
.textbox input:focus + label,
.textbox select.filled + label,
.textbox select:focus + label {
  top: -8px;
  font-size: 11px;
  color: var(--primary);
  background: #181624;
  padding: 0 4px;
}

/* ALWAYS FLOATING (DOB + PHONE) */
.fixed-label label {
  top: -8px !important;
  font-size: 11px !important;
  background: #181624;
  padding: 0 4px;
  color: var(--primary) !important;
}

/* NEW — STYLED DROPDOWN (closed state) */
.textbox select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ada5b4' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}

.textbox select:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.textbox select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(138, 121, 226, 0.35);
}

/* DROPDOWN OPTIONS (opened list) */
.textbox select option {
  background-color: #181624;
  color: #ffffff;
}

/* Optional: slightly different color for placeholder/empty option */
.textbox select option[disabled][hidden] {
  color: #666666;
}

/* Some browsers support hover on options */
.textbox select option:hover {
  background-color: #26233a;
}

/* MULTIPLE FIELD ROWS */
.row {
  display: flex;
  gap: 12px;
}
.row .textbox { flex: 1; }

/* BUTTON */
button {
  height: 50px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOADER + CHECK */
#loader {
  width: 18px;
  height: 18px;
  border: 3px solid transparent;
  border-top: 3px solid white;
  border-radius: 50%;
  display: none;
  animation: spin .6s linear infinite;
}
#checkIcon {
  display: none;
  font-size: 20px;
  margin-left: 6px;
}

/* SUCCESS ALERT */
#successMsg {
  display: none;
  background: #2ecc71;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  transition: .4s;
}
#successMsg.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
.footer {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer a {
  color: var(--primary);
  text-decoration: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}
