/**
 * Account drawer
 *
 * Layout (position, slide-in) still comes from style.min.css.
 * This file restyles the drawer to the shop tokens and beats those
 * rules with a higher-specificity prefix. Loaded on every page.
 */

.account-sidebar .account-overlay {
	background: rgba(5, 13, 24, 0.45);
}

.account-sidebar .account-panel {
	background: #fff;
	box-shadow: -12px 0 40px rgba(10, 22, 40, 0.16);
	font-family: var(--geo-font);
	color: var(--geo-text);
}

.account-sidebar .account-header {
	padding: 1.15rem 1.25rem;
	background: #fff;
	border-bottom: 1px solid var(--geo-line);
}

.account-sidebar .account-header > span {
	width: 2.25rem;
	flex-shrink: 0;
}

.account-sidebar .account-title {
	margin: 0;
	font-family: var(--geo-font);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--geo-text);
	text-align: center;
}

.account-sidebar .account-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid var(--geo-line);
	border-radius: var(--geo-radius-pill);
	background: var(--geo-surface);
	color: var(--geo-text);
	cursor: pointer;
	flex-shrink: 0;
}

.account-sidebar .account-close:hover {
	background: rgba(62, 200, 244, 0.12);
	border-color: rgba(62, 200, 244, 0.4);
	color: var(--geo-ink);
}

.account-sidebar .account-body {
	padding: 1.25rem;
}

/* Tabs */

.account-sidebar .account-tabs {
	display: flex;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
	padding: 0.25rem;
	background: var(--geo-surface);
	border-radius: var(--geo-radius-pill);
}

.account-sidebar .account-tab {
	flex: 1;
	height: auto;
	padding: 0.55rem 0.75rem;
	border: none;
	border-radius: var(--geo-radius-pill);
	background: transparent;
	font-family: var(--geo-font);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--geo-text-soft);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.account-sidebar .account-tab.active {
	background: #fff;
	color: var(--geo-ink);
	border-color: transparent;
	box-shadow: 0 1px 4px rgba(10, 22, 40, 0.08);
}

/* Fields */

.account-sidebar .account-forms .form-row {
	margin-bottom: 0.9rem;
}

.account-sidebar .account-forms .form-row input[type="text"],
.account-sidebar .account-forms .form-row input[type="email"],
.account-sidebar .account-forms .form-row input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--geo-line-strong);
	border-radius: var(--geo-radius-md);
	background: #fff;
	font-family: var(--geo-font);
	font-size: 1rem;
	font-weight: 500;
	color: var(--geo-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-sidebar .account-forms .form-row input::placeholder {
	color: var(--geo-text-faint);
	font-weight: 500;
}

.account-sidebar .account-forms .form-row input:focus {
	border-color: var(--geo-cyan-dark);
	box-shadow: 0 0 0 3px rgba(26, 159, 212, 0.16);
	outline: none;
}

.account-sidebar .account-forms .form-row-remember {
	margin-bottom: 1.1rem;
}

.account-sidebar .account-forms .form-row-remember span {
	font-family: var(--geo-font);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--geo-text-soft);
}

.account-sidebar .account-forms .form-row-remember input[type="checkbox"] {
	width: 1.15rem;
	height: 1.15rem;
	margin-right: 0.55rem;
	border: 1px solid var(--geo-line-strong);
	border-radius: 0.3rem;
	background: #fff;
}

.account-sidebar .account-forms .form-row-remember input[type="checkbox"]:hover {
	border-color: var(--geo-cyan-dark);
}

.account-sidebar .account-forms .form-row-remember input[type="checkbox"]:checked {
	background: var(--geo-cyan);
	border-color: var(--geo-cyan-dark);
}

.account-sidebar .account-forms .form-row-remember input[type="checkbox"]:checked::after {
	border-color: var(--geo-navy-dark);
}

.account-sidebar .account-forms .button {
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.8rem 1.5rem;
	border: none;
	border-radius: var(--geo-radius-pill);
	background: linear-gradient(135deg, var(--geo-cyan), var(--geo-cyan-dark));
	box-shadow: var(--geo-shadow-btn);
	font-family: var(--geo-font);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--geo-navy-dark);
	text-align: center;
	text-transform: none;
	cursor: pointer;
	transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.account-sidebar .account-forms .button:hover {
	color: var(--geo-navy-dark);
	opacity: 0.92;
	box-shadow: var(--geo-shadow-btn-hover);
}

.account-sidebar .account-forms .lost-password {
	margin: 0.9rem 0 0;
	text-align: center;
}

.account-sidebar .account-forms .lost-password a {
	font-family: var(--geo-font);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--geo-text-soft);
	text-decoration: none;
}

.account-sidebar .account-forms .lost-password a:hover {
	color: var(--geo-cyan-dark);
}

/* Logged-in profile */

.account-sidebar .account-user-info {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: -0.25rem 0 1rem;
	padding: 0 0 1.1rem;
	border-bottom: 1px solid var(--geo-line);
	background: transparent;
}

.account-sidebar .user-avatar img {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	border: 2px solid var(--geo-cyan);
	box-shadow: none;
	object-fit: cover;
}

.account-sidebar .user-name {
	margin: 0 0 0.2rem;
	font-family: var(--geo-font);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--geo-text);
}

.account-sidebar .user-email {
	margin: 0;
	font-family: var(--geo-font);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--geo-text-muted);
}

.account-sidebar .account-menu {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0;
}

.account-sidebar .account-menu-item {
	display: flex;
	align-items: center;
	padding: 0.75rem 0.85rem;
	border: none;
	border-radius: var(--geo-radius-md);
	background: transparent;
	font-family: var(--geo-font);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--geo-text);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.account-sidebar .account-menu-item::before {
	content: none;
}

.account-sidebar .account-menu-item:hover {
	padding-left: 0.85rem;
	background: rgba(62, 200, 244, 0.12);
	color: var(--geo-ink);
}

.account-sidebar .account-menu-item.logout {
	margin-top: 0.35rem;
	color: #c24141;
	border-top: none;
}

.account-sidebar .account-menu-item.logout::before {
	content: none;
}

.account-sidebar .account-menu-item.logout:hover {
	background: rgba(194, 65, 65, 0.08);
	color: #c24141;
}

@media (max-width: 768px) {
	.account-sidebar .account-user-info {
		flex-direction: column;
		align-items: flex-start;
	}
}
