/* Hubito Community Suite - registration form (theme-agnostic, responsive) */
.hcs-registration {
	max-width: 560px;
	margin: 0 auto;
}

.hcs-registration .hcs-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.hcs-registration input[type='text'],
.hcs-registration input[type='email'],
.hcs-registration input[type='password'],
.hcs-registration input[type='url'],
.hcs-registration input[type='tel'],
.hcs-registration input[type='date'],
.hcs-registration input[type='number'],
.hcs-registration input[type='file'],
.hcs-registration select,
.hcs-registration textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
}

.hcs-registration input[type='file'] {
	padding: 6px;
	background: #f9fafb;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
}

.hcs-registration input[type='file']:hover {
	background: #f3f4f6;
}

.hcs-role-option {
	display: block;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	margin-bottom: 8px;
	cursor: pointer;
}

.hcs-choice {
	display: block;
	margin-bottom: 4px;
}

.hcs-req {
	color: #b32d2e;
}

.hcs-help {
	color: #6b7280;
	font-size: 0.85em;
}

.hcs-nav {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.hcs-nav button {
	padding: 10px 18px;
	cursor: pointer;
}

.hcs-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 12px;
}

.hcs-success {
	background: #edfaef;
	border: 1px solid #00a32a;
}

.hcs-error {
	background: #fcf0f1;
	border: 1px solid #b32d2e;
}

/* Ticket thread replies - color-coded */
.hcs-ticket-reply-user,
.hcs-ticket-reply-agent {
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 12px;
	border-left: 4px solid;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.hcs-ticket-reply-user {
	background-color: #eff6ff;
	border-left-color: #3b82f6;
}

.hcs-ticket-reply-agent {
	background-color: #f0fdf4;
	border-left-color: #22c55e;
}

.hcs-ticket-reply-user .hcs-ticket-author-badge,
.hcs-ticket-reply-agent .hcs-ticket-author-badge {
	display: inline-block;
	font-size: 0.7em;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 8px;
	font-weight: 600;
	vertical-align: middle;
}

.hcs-ticket-reply-user .hcs-ticket-author-badge {
	background-color: #3b82f6;
	color: #fff;
}

.hcs-ticket-reply-agent .hcs-ticket-author-badge {
	background-color: #22c55e;
	color: #fff;
}

/* RTL support */
[dir='rtl'] .hcs-registration,
body.rtl .hcs-registration {
	text-align: right;
}

[dir='rtl'] .hcs-ticket-reply-user,
[dir='rtl'] .hcs-ticket-reply-agent,
body.rtl .hcs-ticket-reply-user,
body.rtl .hcs-ticket-reply-agent {
	border-left: none;
	border-right: 4px solid;
}

[dir='rtl'] .hcs-ticket-reply-user,
body.rtl .hcs-ticket-reply-user {
	border-right-color: #3b82f6;
}

[dir='rtl'] .hcs-ticket-reply-agent,
body.rtl .hcs-ticket-reply-agent {
	border-right-color: #22c55e;
}

/* Unified login form: CSS-only tabs (password / SMS code / email code) */
.hcs-login {
	max-width: 420px;
	margin: 0 auto;
}

.hcs-login .hcs-login-radio {
	display: none;
}

.hcs-login-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 18px;
	padding: 4px;
	background: #f3f4f6;
	border-radius: 10px;
}

.hcs-login-tabs label {
	flex: 1;
	text-align: center;
	padding: 9px 6px;
	border-radius: 8px;
	font-size: 0.9em;
	font-weight: 600;
	color: #4b5563;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.hcs-login-tabs label:hover {
	color: #111827;
}

.hcs-login-panel {
	display: none;
}

#hcs-tab-password:checked ~ .hcs-login-tabs label[for='hcs-tab-password'],
#hcs-tab-sms:checked ~ .hcs-login-tabs label[for='hcs-tab-sms'],
#hcs-tab-email:checked ~ .hcs-login-tabs label[for='hcs-tab-email'] {
	background: #fff;
	color: #111827;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

#hcs-tab-password:checked ~ .hcs-login-panel-password,
#hcs-tab-sms:checked ~ .hcs-login-panel-sms,
#hcs-tab-email:checked ~ .hcs-login-panel-email {
	display: block;
}

.hcs-login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 0.9em;
}

.hcs-login-remember {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.hcs-login .hcs-btn-primary {
	width: 100%;
	padding: 11px 18px;
	cursor: pointer;
}

.hcs-login-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hcs-login .hcs-btn-link {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.9em;
}

.hcs-login-alt {
	font-size: 0.9em;
}
