/* ==========================================================================
   V20 — register.css
   /register "Word Affiliate" — Account Aanmaken card + form. Plain CSS clone
   of the v20.nl registration screen (floating labels, no Bootstrap).
   ========================================================================== */

.register-section {
	background-color: #0b0c0f;
	padding-top: 4rem;
	padding-bottom: 5rem;
}

.register-card {
	max-width: 560px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--v20-card-bg);
	border: 1px solid var(--v20-border);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.register-card__title {
	margin: 0 0 .75rem;
	color: #fff;
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Neon divider under the title (matches the account-page divider). */
.register-card__divider {
	display: block;
	width: 120px;
	height: 3px;
	margin: 0 0 2rem;
	border-radius: 3px;
	background: linear-gradient(90deg, #00ff88 0%, rgba(0, 255, 136, 0) 100%);
	box-shadow: 0 0 12px rgba(0, 255, 136, .6);
}

/* ---- Alerts ---- */
.register-alert {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	font-size: .9rem;
	line-height: 1.5;
}

.register-alert--error {
	color: #fecaca;
	background: rgba(220, 38, 38, .12);
	border: 1px solid rgba(248, 113, 113, .4);
}

.register-alert ul {
	margin: 0;
	padding-left: 1.1rem;
}

/* ---- Form grid ---- */
.register-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.register-field {
	position: relative;
	grid-column: 1 / -1;
}

.register-field--half {
	grid-column: auto;
}

@media (max-width: 575px) {
	.register-field--half {
		grid-column: 1 / -1;
	}
}

/* ---- Floating-label input ---- */
.register-input {
	width: 100%;
	padding: 1.35rem .9rem .55rem;
	color: #fff;
	background: #16181d;
	border: 1px solid var(--v20-border);
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.2;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.register-input:focus {
	outline: none;
	border-color: var(--v20-neon);
	box-shadow: 0 0 0 3px rgba(0, 255, 136, .15);
}

.register-input::placeholder {
	color: transparent;
}

/* Autofill keeps the dark look. text-fill-color needs !important — Chrome
   forces the glyph colour on autofill harder than the background. */
.register-input:-webkit-autofill,
.register-input:-webkit-autofill:hover,
.register-input:-webkit-autofill:focus,
.register-input:-webkit-autofill:active {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px #16181d inset;
	caret-color: #fff;
}

.register-label {
	position: absolute;
	top: .95rem;
	left: .95rem;
	color: #9ca3af;
	font-size: 1rem;
	pointer-events: none;
	transform-origin: left top;
	transition: transform .15s ease, color .15s ease;
}

/* Raise the label when the field is focused or filled. */
.register-input:focus + .register-label,
.register-input:not(:placeholder-shown) + .register-label {
	transform: translateY(-.7rem) scale(.75);
	color: var(--v20-neon);
}

.register-hint {
	margin: .5rem 0 0;
	color: #9ca3af;
	font-size: .8rem;
}

/* ---- Newsletter checkbox ---- */
.register-check {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.register-check__input {
	accent-color: var(--v20-neon);
	flex-shrink: 0;
}

.register-check__label {
	color: #9ca3af;
	font-size: .9rem;
	line-height: 1.4;
}

/* Fine-tune the label's baseline against the checkbox on desktop/tablet only. */
@media (min-width: 768px) {
	.register-check__label {
		margin-top: 2.2px;
	}
}

/* ---- Submit ---- */
.register-submit {
	grid-column: 1 / -1;
	margin-top: .5rem;
	width: 100%;
	padding: 1rem;
	color: #000;
	background-color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .5px;
	cursor: pointer;
	box-shadow: 0 0 16px rgba(0, 255, 136, .45);
	transition: background-color .3s ease, box-shadow .3s ease;
}

.register-submit:hover {
	background-color: var(--v20-neon);
	box-shadow: 0 0 11px var(--v20-neon);
}

.register-login {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	margin: 1.25rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--v20-border);
	color: #9ca3af;
	font-size: .9rem;
}

.register-login__link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .4rem .9rem;
	color: var(--v20-neon);
	font-weight: 700;
	border: 1px solid rgba(0, 255, 136, .4);
	border-radius: 8px;
	transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.register-login__link svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.register-login__link:hover {
	color: #05140d;
	background: var(--v20-neon);
	box-shadow: 0 0 14px rgba(0, 255, 136, .4);
}
