/* TRP Login/Register — base structural styles.
 * Intentionally minimal/neutral: colors, typography, spacing, borders and
 * radii are all left to be set per-widget-instance via Elementor's Style
 * tab. This file only handles layout so the form works before any styling
 * is applied. */

.trp-form {
	/* No max-width cap here on purpose: this is an Elementor widget, and
	 * the site builder already controls how wide it should be via the
	 * column/container width in Elementor itself (as in this case, where
	 * separate columns were sized specifically for the login and
	 * registration forms). An internal cap fights that control — it made
	 * the form shrink to its own fixed width regardless of the column,
	 * leaving unused empty space on one side inside the widget. width:100%
	 * makes the form always fill whatever space Elementor actually gives
	 * it; if a narrower form is wanted, that's set on the column/container
	 * width in Elementor, not hardcoded here. */
	width: 100%;
	box-sizing: border-box;
}

.trp-form * {
	box-sizing: border-box;
}

.trp-heading {
	margin: 0 0 8px;
}

.trp-description {
	margin: 0 0 16px;
}

.trp-field {
	margin: 0 0 16px;
}

.trp-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.trp-field input[type="text"],
.trp-field input[type="email"],
.trp-field input[type="password"],
.trp-field input[type="tel"],
.trp-field input[type="date"],
.trp-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	line-height: 1.4;
}

.trp-field .required {
	color: #c00;
}

/* Password show/hide toggle */
.trp-password-wrap {
	position: relative;
}

.trp-password-wrap input[type="password"],
.trp-password-wrap input[type="text"] {
	padding-right: 42px;
}

/* Reset every generic property a theme's/WooCommerce's global `button`
 * stylesheet is likely to set (background, border, box-shadow, min-width,
 * text-transform, font, etc.) so this always renders as a bare icon rather
 * than looking like a normal button, regardless of the active theme. */
.trp-form .trp-password-toggle,
.trp-form button.trp-password-toggle {
	position: absolute !important;
	top: 50% !important;
	right: 6px !important;
	transform: translateY(-50%) !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	width: 30px !important;
	min-width: 30px !important;
	height: 30px !important;
	min-height: 30px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	line-height: 0 !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: normal !important;
	cursor: pointer !important;
	color: #666 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 0.15s ease, color 0.15s ease !important;
}

.trp-form .trp-password-toggle svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.trp-form .trp-password-toggle:hover,
.trp-form .trp-password-toggle:focus-visible {
	color: #1a1a1a !important;
	background-color: rgba(0, 0, 0, 0.06) !important;
}

/* Date-of-birth day/month/year group — presented as one cohesive,
 * segmented control instead of three separate boxes, with a custom
 * chevron since native <select> arrows render inconsistently. */
.trp-dob-group {
	display: flex;
	align-items: stretch;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.trp-dob-group:focus-within {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.trp-dob-group select {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 10px 28px 10px 12px;
	border: none;
	border-right: 1px solid #e2e2e2;
	font-size: 15px;
	line-height: 1.4;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 14px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 0;
	cursor: pointer;
}

.trp-dob-group select:last-child {
	border-right: none;
}

.trp-dob-group select:hover {
	background-color: #f9f9f9;
}

.trp-dob-day {
	flex: 0.75;
}

.trp-dob-year {
	flex: 1.1;
}

/* Shown by JS if the group is submitted incomplete. */
.trp-dob-group.trp-field-invalid {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.08);
}

.trp-dob-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #767676;
}

.trp-checkbox-row label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}

.trp-checkbox-row input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.trp-login-actions-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.trp-remember {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
}

.trp-submit-btn {
	display: inline-block;
	cursor: pointer;
	border: none;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 4px;
	background: #1a1a1a;
	color: #fff;
	transition: background-color 0.15s ease;
}

.trp-submit-btn:hover {
	background: #333;
}

.trp-terms-box {
	max-height: 180px;
	overflow-y: auto;
	padding: 12px;
	margin-bottom: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
}

.trp-terms-box p {
	margin: 0 0 8px;
}

.trp-lost-password,
.trp-back-to-login {
	margin: 12px 0 0;
	font-size: 14px;
}

.trp-notice {
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: 4px;
	font-size: 14px;
}

.trp-notice-success {
	background: #eaf7ec;
	border: 1px solid #b7e0bd;
	color: #205d2c;
}

.trp-notice-error {
	background: #fdecea;
	border: 1px solid #f3c2bd;
	color: #8a1f13;
}

/* Honeypot field: hidden from real users, left visible to bots that ignore CSS. */
.trp-hp-field {
	position: absolute;
	left: -9999px;
}
