/* portalLogin -- self-contained auth UI styles (pl_ prefix, no external deps) */

.pl_auth {
	--pl-primary: #2563eb;
	--pl-primary-dark: #1d4ed8;
	--pl-border: #e5e7eb;
	--pl-muted: #6b7280;
	--pl-bg: #f9fafb;
	--pl-radius: 10px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 48px 16px;
	min-height: 60vh;
	background: var(--pl-bg);
	box-sizing: border-box;
}

.pl_auth * { box-sizing: border-box; }

.pl_card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border: 1px solid var(--pl-border);
	border-radius: var(--pl-radius);
	padding: 32px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pl_card--message { text-align: center; }

.pl_head { text-align: center; margin-bottom: 28px; }
.pl_title { font-size: 26px; font-weight: 700; margin: 0 0 6px; color: #111827; }
.pl_muted { color: var(--pl-muted); }
.pl_subtitle, .pl_head p { margin: 0; color: var(--pl-muted); }

.pl_form { margin-bottom: 20px; }

.pl_group { margin-bottom: 16px; }
.pl_grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .pl_grid2 { grid-template-columns: 1fr; } }

.pl_label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #374151;
}

.pl_input {
	width: 100%;
	padding: 11px 13px;
	font-size: 15px;
	border: 1px solid var(--pl-border);
	border-radius: 8px;
	transition: border-color .15s, box-shadow .15s;
	background: #fff;
}
.pl_input:focus {
	outline: none;
	border-color: var(--pl-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pl_help { display: block; font-size: 12px; color: var(--pl-muted); margin-top: 4px; }

.pl_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, border-color .15s, opacity .15s;
}
.pl_btn--block { width: 100%; }
.pl_btn--sm { padding: 8px 14px; font-size: 14px; }
.pl_btn--primary { background: var(--pl-primary); color: #fff; }
.pl_btn--primary:hover { background: var(--pl-primary-dark); }
.pl_btn--primary[disabled] { opacity: .6; cursor: default; }
.pl_btn--secondary { background: #fff; color: #374151; border-color: var(--pl-border); }
.pl_btn--secondary:hover { background: #f3f4f6; }

.pl_gicon {
	display: inline-flex;
	width: 18px; height: 18px;
	align-items: center; justify-content: center;
	font-weight: 700;
	color: #ea4335;
}

.pl_divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--pl-muted);
	font-size: 13px;
	margin: 20px 0;
}
.pl_divider::before, .pl_divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--pl-border);
}
.pl_divider span { padding: 0 12px; }

.pl_foot { text-align: center; margin-top: 20px; }
.pl_small { font-size: 14px; }
.pl_foot a { color: var(--pl-primary); font-weight: 600; text-decoration: none; }
.pl_foot a:hover { text-decoration: underline; }

/* plan selector */
.pl_plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .pl_plans { grid-template-columns: 1fr; } }
.pl_plan {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px;
	border: 2px solid var(--pl-border);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.pl_plan input { margin-bottom: 4px; }
.pl_plan--active, .pl_plan:hover { border-color: var(--pl-primary); background: rgba(37, 99, 235, 0.05); }
.pl_plan_name { font-weight: 600; }
.pl_plan_price { font-size: 12px; color: var(--pl-muted); }

/* billing block */
.pl_billing {
	border: 1px solid var(--pl-border);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	background: #fafafa;
}
.pl_billing_head { font-weight: 600; margin-bottom: 12px; color: #374151; }

/* terms checkbox */
.pl_check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	margin-bottom: 20px;
	cursor: pointer;
}
.pl_check input { margin-top: 3px; }
.pl_check a { color: var(--pl-primary); }

/* notes / messages */
.pl_note {
	margin-top: 14px;
	padding: 11px 13px;
	border-radius: 8px;
	font-size: 14px;
}
.pl_note--ok { background: #ecfdf5; color: #065f46; }
.pl_note--error { background: #fef2f2; color: #991b1b; }

.pl_msg { padding: 18px; border-radius: 8px; margin-bottom: 16px; }
.pl_msg--info { background: #eff6ff; color: #1e3a8a; }
.pl_msg--error { background: #fef2f2; color: #991b1b; }

/* login state box */
.pl_box { display: inline-flex; gap: 8px; align-items: center; }
.pl_box_hello { font-size: 14px; color: var(--pl-muted); margin-right: 4px; }

.pl_hide { display: none !important; }

/* searchable select (country) */
.ss_wrap { position: relative; }
.ss_list { position: absolute; z-index: 50; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12); display: none; }
.ss_list.open { display: block; }
.ss_item { padding: 8px 12px; cursor: pointer; font-size: 14px; }
.ss_item:hover { background: #f3f4f6; }
