/* =========================================
   ACCOUNT ICON
========================================= */

.repm-user-account {
	position: relative;
	display: inline-flex;
}

.repm-user-header-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
	padding: 0;
}

.repm-user-header-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Logged-in dropdown */

.repm-user-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	min-width: 190px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
	padding: 12px 14px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .15s ease, transform .15s ease;
	z-index: 999;
}

.repm-user-account.is-open .repm-user-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.repm-user-name {
	font-weight: 600;
	font-size: 14px;
	color: #172033;
	margin-bottom: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repm-user-logout {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #ff3b5c;
	text-decoration: none;
}

.repm-user-logout:hover {
	text-decoration: underline;
}


/* =========================================
   LOGIN / REGISTER DRAWER
========================================= */

.repm-auth-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	visibility: hidden;
	pointer-events: none;
}

.repm-auth-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.repm-auth-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	opacity: 0;
	transition: opacity .25s ease;
}

.repm-auth-drawer.is-open .repm-auth-drawer-overlay {
	opacity: 1;
}

.repm-auth-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(400px, 92vw);
	background: #fff;
	box-shadow: -10px 0 30px rgba(15, 23, 42, .15);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s ease;
}

.repm-auth-drawer.is-open .repm-auth-drawer-panel {
	transform: translateX(0);
}

.repm-auth-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.repm-auth-drawer-head h3 {
	margin: 0;
	font-size: 18px;
	color: #172033;
}

.repm-auth-drawer-close {
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #667085;
	padding: 4px;
}

.repm-auth-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 20px;
}

.repm-auth-note {
	background: #edf2ff;
	color: #052750;
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 8px;
	margin: 0 0 16px;
}

.repm-auth-message {
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 8px;
	margin: 0 0 16px;
}

.repm-auth-message.is-error {
	background: #fff0f2;
	color: #c81e3a;
}

.repm-auth-message.is-success {
	background: #eafff2;
	color: #0a7a3d;
}

.repm-auth-tabs {
	display: flex;
	gap: 6px;
	background: #f1f4f8;
	padding: 4px;
	border-radius: 10px;
	margin-bottom: 18px;
}

.repm-auth-tab {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 9px 10px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #667085;
	cursor: pointer;
}

.repm-auth-tab.is-active {
	background: #fff;
	color: #172033;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.repm-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.repm-auth-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #344054;
}

.repm-auth-form input {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	color: #172033;
}

.repm-auth-form input:focus {
	outline: none;
	border-color: #1f5eff;
}

.repm-auth-submit {
	margin-top: 4px;
	border: 0;
	border-radius: 8px;
	background: #1f5eff;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 14px;
	cursor: pointer;
	transition: background .2s ease;
}

.repm-auth-submit:hover {
	background: #1447c9;
}

.repm-auth-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

body.repm-auth-drawer-locked {
	overflow: hidden;
}

@media (max-width: 480px) {
	.repm-auth-drawer-panel {
		width: 100vw;
	}
}
