/* HiveCore — front-end AJAX login / register / lost-password modal */

.hivecore-auth-modal {
	--hivecore-auth-accent: #00c2cb;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}

.hivecore-auth-modal.is-open {
	display: block;
}

.hivecore-auth-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 15, 18, 24, 0.55 );
	backdrop-filter: blur( 6px );
	-webkit-backdrop-filter: blur( 6px );
}

.hivecore-auth-panel {
	position: relative;
	z-index: 1;
	max-width: 400px;
	margin: 8vh auto;
	padding: 32px 28px 28px;
	background: rgba( 255, 255, 255, 0.85 );
	border: 1px solid rgba( 255, 255, 255, 0.4 );
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.25 );
	backdrop-filter: blur( 18px );
	-webkit-backdrop-filter: blur( 18px );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hivecore-auth-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #444;
}

.hivecore-auth-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
}

.hivecore-auth-tab {
	flex: 1;
	padding: 8px 4px 12px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 0.85rem;
	font-weight: 600;
	color: #666;
	cursor: pointer;
}

.hivecore-auth-tab.is-active {
	color: #14151a;
	border-bottom-color: var( --hivecore-auth-accent );
}

.hivecore-auth-pane {
	display: none;
	flex-direction: column;
}

.hivecore-auth-pane.is-active {
	display: flex;
}

.hivecore-auth-field {
	margin: 0 0 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hivecore-auth-field label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #333;
}

.hivecore-auth-field input[type="text"],
.hivecore-auth-field input[type="email"],
.hivecore-auth-field input[type="password"] {
	padding: 10px 12px;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	border-radius: 8px;
	font-size: 0.95rem;
	background: rgba( 255, 255, 255, 0.7 );
}

.hivecore-auth-field input:focus {
	outline: none;
	border-color: var( --hivecore-auth-accent );
	box-shadow: 0 0 0 3px rgba( 0, 194, 203, 0.2 );
}

.hivecore-auth-checkbox {
	flex-direction: row;
	align-items: center;
}

.hivecore-auth-checkbox label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
}

.hivecore-auth-submit {
	margin-top: 4px;
	padding: 11px 18px;
	background: var( --hivecore-auth-accent );
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.hivecore-auth-submit:hover,
.hivecore-auth-submit:focus {
	opacity: 0.9;
}

.hivecore-auth-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.hivecore-auth-status {
	min-height: 1.2em;
	margin: 0 0 12px;
	font-size: 0.85rem;
	text-align: center;
}

.hivecore-auth-status.is-error {
	color: #c0392b;
}

.hivecore-auth-status.is-success {
	color: #1e8e5a;
}

.hivecore-auth-strength {
	display: block;
	height: 4px;
	border-radius: 2px;
	background: rgba( 0, 0, 0, 0.08 );
	overflow: hidden;
	margin-top: 4px;
}

.hivecore-auth-strength-bar {
	display: block;
	height: 100%;
	width: 0%;
	background: #c0392b;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.hivecore-auth-trigger {
	cursor: pointer;
}

@media ( max-width: 480px ) {
	.hivecore-auth-panel {
		margin: 5vh 16px;
		max-width: none;
	}
}
