/* account.css 45 modern, clean layout just for the account page */
:root {
  --accent: #2e7d32;          /* deep green accent */
  --accent-contrast: #fff;
  --surface: #ffffff;          /* card background */
  --surface-2: #f6fff6;        /* subtle input bg */
  --border: #e6e8eb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --gap: 1rem;
}


/* Layout container for this page */
main {
  display: grid;
  place-items: start center;
  gap: 1.25rem;
  padding: 2rem 1rem 3rem;
  max-width: 720px;
  margin-inline: auto;
}

/* Register form as a card */
.container-register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0; /* moved spacing to main */
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.register-form-header {
  margin: 0 0 .25rem 0;
  text-align: center;
  font-size: clamp(1.1rem, 1.2rem + .2vw, 1.35rem);
  line-height: 1.3;
  color: #1b1f24;
}

.username-input {
  width: 100%;             /* make it full width */
  max-width: 300px;        /* limit width */
  padding: 10px 14px;      /* inner spacing */
  font-size: 1rem;         /* readable text size */
  border: 2px solid #265a81; /* nice border color */
  border-radius: 8px;      /* rounded corners */
  outline: none;           /* remove default outline */
  transition: border-color 0.2s, box-shadow 0.2s;
}

.username-input:focus {
  border-color: #1b3e5a;   /* darker on focus */
  box-shadow: 0 0 6px rgba(38, 90, 129, 0.5);
}

/*
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem; 
}
*/

.register-form-row {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.rgister-button-container {
	margin-top: 10px;
}

.typing-text {
  display: inline-block;
  overflow: hidden;              /* hide overflowing text */
  white-space: nowrap;           /* keep text in one line */
  border-right: 3px solid red;   /* blinking cursor */
  font-family: monospace;        /* typewriter feel */
  font-size: 1.2rem;
  color: red;
  animation: typing 4s steps(30, end) infinite,
             blink-caret 0.7s step-end infinite;
}

/* Typing animation */
@keyframes typing {
  0% { width: 0 }
  50% { width: 100% }
  100% { width: 0 }
}

/* Cursor blink */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: red }
}



/* Center the captcha */
.h-captcha {
  margin-top: .25rem;
  display: flex;
  justify-content: center;
}

/* Message area aligns with the card width */
#message {
  width: min(100%, 720px);
  margin: .25rem auto 0;
}

/* Referrals count chip */
#referrals-count-text {
  display: inline-block;
  margin: .25rem 0 .25rem .25rem;
  padding: .25rem .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  color: #374151;
  box-shadow: var(--shadow);
}

/* Referral link box */
.referral-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .75rem;
  margin: 0; /* spacing handled by main */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.referral-link {
  flex: 1 1 auto;
  padding: .6rem .75rem;
  background: #f6f9ff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;            /* easy copy */
}


.warning-label {
    color: red;
    font-size: 1.2rem;
    font-weight: bold; 
	margin-bottom: 10px;
}

