:root {
	--password-card-max-width: 480px;
	--password-icon-size: 20px;
	--password-logo-size: 52px;
	--password-badge-border-radius: 9999px;
	--password-success-bg: rgba(22, 122, 68, 0.08);
	--password-success-border: rgba(22, 122, 68, 0.2);
	--password-danger-bg: rgba(189, 39, 39, 0.08);
	--password-danger-border: rgba(189, 39, 39, 0.2);
	--password-input-bg: #ffffff;
	--password-input-focus-shadow: rgba(31, 55, 91, 0.1);
	--password-card-shadow: 0 16px 48px rgba(31, 55, 91, 0.06);
	--password-card-shadow-hover: 0 24px 60px rgba(31, 55, 91, 0.1);
}

.password-page-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	min-height: 100vh;
	background-color: var(--bg-base);
	position: relative;
	overflow-x: hidden;
	padding: 24px;
}

.password-card {
	width: 100%;
	max-width: var(--password-card-max-width);
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 24px;
	padding: 48px 40px;
	box-shadow: var(--password-card-shadow);
	position: relative;
	z-index: 10;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.password-card:hover {
	border-color: var(--border-hover);
	box-shadow: var(--password-card-shadow-hover);
}

.password-header {
	text-align: center;
	margin-bottom: 32px;
}

.password-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--password-logo-size);
	height: var(--password-logo-size);
	border-radius: 14px;
	background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
	font-family: var(--font-display);
	font-weight: 800;
	color: #ffffff;
	font-size: var(--font-size-2xl);
	margin-bottom: 16px;
	box-shadow: 0 4px 12px rgba(31, 55, 91, 0.15);
}

.password-title {
	font-family: var(--font-display);
	font-size: var(--font-size-3xl);
	font-weight: 800;
	letter-spacing: normal;
	line-height: var(--line-height-tight);
	color: var(--color-primary);
	margin-bottom: 8px;
}

.password-subtitle {
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
	line-height: var(--line-height-normal);
}

.password-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.password-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.password-form-label {
	font-size: var(--font-size-xs);
	font-weight: 700;
	color: var(--text-secondary);
	letter-spacing: 0.02em;
}

.password-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.password-input-wrapper .input-icon-lead {
	position: absolute;
	left: 16px;
	color: var(--color-text-subtle);
	font-size: var(--password-icon-size);
	pointer-events: none;
	transition: color 0.2s ease;
}

.password-input {
	width: 100%;
	padding: 14px 44px 14px 48px;
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-normal);
	color: var(--text-primary);
	background: var(--password-input-bg);
	border: 1.5px solid var(--border-color);
	border-radius: 12px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px var(--password-input-focus-shadow);
}

.password-input:focus ~ .input-icon-lead {
	color: var(--color-primary);
}

.btn-toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: var(--color-text-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-toggle-password:hover {
	color: var(--color-primary);
	background-color: var(--color-primary-translucent-4);
}

.btn-toggle-password .material-symbols-outlined {
	font-size: var(--password-icon-size);
}

.btn-submit-password {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	font-weight: 600;
	color: #ffffff;
	background-color: var(--color-primary);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	margin-top: 4px;
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 12px rgba(31, 55, 91, 0.15);
}

.btn-submit-password:hover {
	background-color: var(--color-primary-hover);
	box-shadow: 0 6px 16px rgba(31, 55, 91, 0.2);
}

.btn-submit-password:active {
	transform: translateY(1px);
}

.btn-submit-password:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.btn-submit-password .material-symbols-outlined {
	font-size: var(--password-icon-size);
}

.password-requirements-card {
	background-color: var(--color-surface-muted);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.requirements-title {
	font-size: var(--font-size-xs);
	font-weight: 700;
	color: var(--color-text-main);
}

.requirements-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.requirements-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	transition: color 0.2s ease;
}

.requirements-item .material-symbols-outlined {
	font-size: 16px;
	color: var(--color-text-subtle);
	transition: color 0.2s ease, transform 0.2s ease;
}

.requirements-item.is-valid {
	color: var(--color-success);
}

.requirements-item.is-valid .material-symbols-outlined {
	color: var(--color-success);
}

.requirements-item.is-invalid {
	color: var(--color-danger);
}

.requirements-item.is-invalid .material-symbols-outlined {
	color: var(--color-danger);
}

.password-footer-actions {
	text-align: center;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.back-to-login-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: var(--font-size-sm);
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-login-link:hover {
	color: var(--color-secondary);
	transform: translateX(-2px);
}

.back-to-login-link .material-symbols-outlined {
	font-size: 18px;
}

.alert-panel {
	padding: 14px 16px;
	border-radius: 12px;
	font-size: var(--font-size-sm);
	font-weight: 500;
	line-height: var(--line-height-normal);
	margin-bottom: 24px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.alert-panel .material-symbols-outlined {
	font-size: var(--password-icon-size);
	flex-shrink: 0;
	margin-top: 2px;
}

.alert-panel-danger {
	background-color: var(--password-danger-bg);
	border: 1px solid var(--password-danger-border);
	color: var(--accent-danger);
}

.alert-panel-success {
	background-color: var(--password-success-bg);
	border: 1px solid var(--password-success-border);
	color: var(--color-success);
}

.instruction-box {
	background-color: var(--color-surface-muted);
	border: 1px dashed var(--border-color);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 24px;
	font-size: var(--font-size-xs);
	color: var(--text-secondary);
	line-height: var(--line-height-normal);
}

.instruction-box ul {
	margin: 8px 0 0 0;
	padding-left: 18px;
}

.instruction-box li {
	margin-bottom: 4px;
}

.is-hidden {
	display: none !important;
}

@media (max-width: 520px) {
	.password-card {
		padding: 36px 24px;
		border-radius: 20px;
	}

	.password-title {
		font-size: var(--font-size-2xl);
	}
}
