.pm-auth-wrap,
.pm-auth-card,
.pm-auth-form,
.pm-auth-input,
.pm-auth-btn,
.pm-auth-link {
	box-sizing: border-box;
}

.pm-auth-wrap {
	max-width: 520px;
	margin: 28px auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.pm-auth-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px 22px 18px;
	box-shadow:
		0 18px 50px rgba(15, 23, 42, 0.10),
		0 2px 10px rgba(15, 23, 42, 0.05);
}

.pm-auth-title {
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #0f172a;
}

.pm-auth-hint {
	margin: 0;
	color: #475569;
	font-size: 14px;
}

.pm-auth-notice {
	border-radius: 12px;
	padding: 12px 14px;
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.4;
}
.pm-auth-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #7f1d1d;
}
.pm-auth-notice--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #14532d;
}

.pm-auth-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pm-auth-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pm-auth-label {
	font-weight: 600;
	font-size: 14px;
	color: #0f172a;
}

.pm-auth-req {
	color: #dc2626;
	font-weight: 700;
}

.pm-auth-input {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 15px;
	line-height: 1.2;
	background: #ffffff;
	color: #0f172a;
	transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.pm-auth-input::placeholder {
	color: #94a3b8;
}
.pm-auth-input:focus {
	outline: none;
	border-color: #2ea3f2;
	box-shadow: 0 0 0 4px rgba(46, 163, 242, 0.22);
}
.pm-auth-input:invalid {
	box-shadow: none;
}
.pm-auth-input:focus:invalid {
	border-color: #ef4444;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.pm-auth-help {
	margin: 0;
	color: #64748b;
	font-size: 13px;
}

.pm-auth-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.pm-auth-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #334155;
	font-size: 14px;
	user-select: none;
}
.pm-auth-checkbox input {
	width: 16px;
	height: 16px;
}

.pm-auth-actions {
	margin-top: 6px;
}

.pm-auth-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 12px 14px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.pm-auth-btn--primary {
	background: #2ea3f2;
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(46, 163, 242, 0.26);
}
.pm-auth-btn--primary:hover {
	background: #198fdc;
	box-shadow: 0 12px 26px rgba(46, 163, 242, 0.30);
	transform: translateY(-1px);
}
.pm-auth-btn--primary:active {
	transform: translateY(0);
	box-shadow: 0 8px 18px rgba(46, 163, 242, 0.26);
}
.pm-auth-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(46, 163, 242, 0.25), 0 10px 22px rgba(46, 163, 242, 0.26);
}
.pm-auth-btn[disabled],
.pm-auth-btn:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.pm-auth-link {
	color: #2ea3f2;
	text-decoration: none; font-size:16px;
}
.pm-auth-link:hover {
	color: #198fdc;
	text-decoration: underline;
}
.pm-auth-link:focus-visible {
	outline: none;
	border-radius: 6px;
	box-shadow: 0 0 0 4px rgba(46, 163, 242, 0.18);
}

.pm-auth-footer {
	margin: 8px 0 0;
	color: #475569;
	font-size: 14px;
}

@media (max-width: 480px) {
	.pm-auth-card { padding: 18px 16px 14px; }
	.pm-auth-row { flex-direction: column; align-items: flex-start; }
}

