/* ──────────────────────────────────────────────────────────────────────────
   DW PsiClinic — Portal Paciente (frontend)
   Mobile-first 320 → 4K. Tipografia Inter / system-ui.
   Desenvolvido por: DriveWeb | Rodrigo Soares | © DriveWeb - Todos os direitos reservados
   ────────────────────────────────────────────────────────────────────────── */

.dwpsi-portal {
	--p-primary: #4f8ef7;
	--p-secondary: #00d68f;
	--p-bg: #f7f9fc;
	--p-bg-dark: #0f0f1a;
	--p-card: #ffffff;
	--p-border: #e2e8f0;
	--p-text: #0f172a;
	--p-muted: #64748b;
	--p-radius: 16px;
	--p-shadow: 0 4px 18px rgba(15, 15, 26, .08);

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	color: var(--p-text);
	max-width: 720px;
	margin: 24px auto;
	padding: 0 16px;
	line-height: 1.55;
}

.dwpsi-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}
.dwpsi-portal-header h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.3px;
}
.dwpsi-portal-sub {
	margin: 4px 0 0;
	color: var(--p-muted);
	font-size: 13px;
}

.dwpsi-portal-card {
	background: var(--p-card);
	border-radius: var(--p-radius);
	box-shadow: var(--p-shadow);
	padding: 22px 24px;
	margin-bottom: 16px;
}
.dwpsi-portal-card h2 {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 600;
}

.dwpsi-card-warn {
	border-left: 4px solid #f59e0b;
	background: linear-gradient(to right, #fffbeb 0%, #ffffff 60%);
}

.dwpsi-empty-msg {
	color: var(--p-muted);
	font-size: 14px;
	margin: 0;
}

.dwpsi-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dwpsi-list > li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--p-border);
	gap: 12px;
}
.dwpsi-list > li:last-child {
	border-bottom: none;
}
.dwpsi-list-main {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}
.dwpsi-list-main strong {
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}
.dwpsi-list-meta {
	font-size: 12px;
	color: var(--p-muted);
	white-space: nowrap;
}

.dwpsi-tag {
	display: inline-block;
	background: #eef2ff;
	color: #4338ca;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 9px;
	border-radius: 999px;
}
.dwpsi-tag-mbway      { background: #fef3c7; color: #92400e; }
.dwpsi-tag-multibanco { background: #dbeafe; color: #1e40af; }
.dwpsi-tag-stripe     { background: #ede9fe; color: #6d28d9; }
.dwpsi-tag-pix        { background: #d1fae5; color: #065f46; }

.dwpsi-btn-ghost {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--p-border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--p-text);
	text-decoration: none;
	transition: background .15s, border-color .15s;
}
.dwpsi-btn-ghost:hover {
	background: var(--p-bg);
	border-color: var(--p-primary);
}

/* Login ─────────────────────────────────────────────────────────── */

.dwpsi-login {
	max-width: 420px;
	margin: 80px auto 0;
}
.dwpsi-login h1 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
}
.dwpsi-login form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 18px;
}
.dwpsi-login form p {
	margin: 0;
}
.dwpsi-login form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}
.dwpsi-login form input[type=text],
.dwpsi-login form input[type=password] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--p-border);
	border-radius: 10px;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.dwpsi-login form input:focus {
	outline: none;
	border-color: var(--p-primary);
	box-shadow: 0 0 0 3px rgba(79, 142, 247, .15);
}
.dwpsi-login form input[type=submit] {
	background: linear-gradient(135deg, var(--p-primary), var(--p-secondary));
	color: #fff;
	border: none;
	padding: 12px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .12s, box-shadow .12s;
}
.dwpsi-login form input[type=submit]:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(79, 142, 247, .35);
}
.dwpsi-login-recover {
	text-align: center;
	margin-top: 12px;
	font-size: 13px;
}
.dwpsi-login-recover a {
	color: var(--p-muted);
	text-decoration: none;
}

.dwpsi-portal-footer {
	text-align: center;
	margin-top: 30px;
	color: var(--p-muted);
}

/* Dark mode ─────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
	.dwpsi-portal {
		--p-bg: #0a0a14;
		--p-card: #1a1a2e;
		--p-border: #2a2a3e;
		--p-text: #e2e8f0;
		--p-muted: #94a3b8;
	}
}

/* Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.dwpsi-portal { padding: 0 12px; margin: 12px auto; }
	.dwpsi-portal-card { padding: 16px; }
	.dwpsi-portal-header h1 { font-size: 20px; }
	.dwpsi-list > li { flex-direction: column; align-items: flex-start; gap: 4px; }
	.dwpsi-list-meta { white-space: normal; }
}
