/* ============================================================
   Book Proof — Frontend styles
   ============================================================ */

.bp-app {
	--bp-bg:        #ffffff;
	--bp-surface:   #ffffff;
	--bp-surface-2: #f6f8fa;
	--bp-border:    #e1e4e8;
	--bp-text:      #1f2328;
	--bp-text-muted:#6e7781;
	--bp-accent:    #2271b1;
	--bp-accent-hover:#135e96;
	--bp-pin:       #e63946;
	--bp-pin-resolved:#2da44e;
	--bp-pin-progress:#bf8700;
	--bp-shadow:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
	--bp-shadow-lg: 0 10px 30px rgba(0,0,0,.18);
	--bp-radius:    8px;
	--bp-radius-sm: 4px;
	--bp-height:    700px;
	--bp-font:      -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

	width: 100%;
	height: var(--bp-height);
	box-sizing: border-box;
	font-family: var(--bp-font);
	color: var(--bp-text);
	background: var(--bp-bg);
	border-radius: var(--bp-radius);
	overflow: hidden;
	box-shadow: var(--bp-shadow);
	border: 1px solid var(--bp-border);
}

.bp-app:fullscreen,
.bp-app:-webkit-full-screen {
	width: 100vw;
	height: 100vh;
	max-height: none;
	min-height: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.bp-app.bp-theme-dark {
	--bp-bg:        #0d1117;
	--bp-surface:   #161b22;
	--bp-surface-2: #1c2128;
	--bp-border:    #30363d;
	--bp-text:      #e6edf3;
	--bp-text-muted:#8b949e;
	--bp-accent:    #58a6ff;
	--bp-accent-hover:#79b8ff;
	--bp-shadow:    0 1px 3px rgba(0,0,0,.4);
	--bp-shadow-lg: 0 10px 30px rgba(0,0,0,.6);
}

/* Force [hidden] to win over any theme/plugin display rules. Without this,
   a hidden modal overlay can invisibly intercept every click in the viewer. */
.bp-app [hidden],
.bp-modal[hidden] { display: none !important; }

/* Loading & empty */
.bp-app .bp-loading,
.bp-app .bp-empty-state,
.bp-editor-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	color: var(--bp-text-muted);
	flex-direction: column;
	gap: 12px;
	padding: 40px;
	text-align: center;
}
.bp-editor-placeholder {
	background: #f6f8fa;
	border: 2px dashed #d0d7de;
	border-radius: 8px;
	color: #57606a;
	font-size: 14px;
}
.bp-spinner {
	width: 36px; height: 36px;
	border: 3px solid var(--bp-border);
	border-top-color: var(--bp-accent);
	border-radius: 50%;
	animation: bp-spin 0.8s linear infinite;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }

/* Shell */
.bp-shell {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: var(--bp-bg);
}

/* ============================================================
   Toolbar
   ============================================================ */
.bp-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: var(--bp-surface);
	border-bottom: 1px solid var(--bp-border);
	flex-wrap: wrap;
}
.bp-toolbar-left,
.bp-toolbar-center,
.bp-toolbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}
.bp-toolbar-center { flex: 1; justify-content: center; flex-wrap: wrap; }

.bp-version-select {
	background: var(--bp-surface-2);
	border: 1px solid var(--bp-border);
	color: var(--bp-text);
	padding: 6px 10px;
	border-radius: var(--bp-radius-sm);
	font-size: 13px;
	cursor: pointer;
	min-width: 200px;
}

.bp-icon-btn {
	background: transparent;
	color: var(--bp-text);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	width: 32px; height: 32px;
	font-size: 18px;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	transition: all 0.12s;
	padding: 0;
}
.bp-icon-btn:hover { background: var(--bp-surface-2); border-color: var(--bp-accent); }

.bp-tool-group {
	display: inline-flex;
	gap: 2px;
	margin-left: 4px;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	padding: 2px;
	background: var(--bp-surface-2);
}
.bp-tool-group .bp-tool-btn {
	width: 28px;
	height: 28px;
	font-size: 14px;
	border: 0;
	border-radius: 3px;
}
.bp-tool-group .bp-tool-btn.bp-tool-active {
	background: var(--bp-accent);
	color: #fff;
}
.bp-tool-group .bp-tool-btn:not(.bp-tool-active):hover {
	background: var(--bp-surface);
}

/* Cursor depends on the active tool */
.bp-app[data-tool="pin"] .bp-annotation-layer  { cursor: crosshair; }
.bp-app[data-tool="hand"] .bp-annotation-layer { cursor: grab; }
.bp-app[data-tool="hand"][data-dragging="1"] .bp-annotation-layer { cursor: grabbing; }

.bp-page-input {
	width: 50px; text-align: center;
	background: var(--bp-surface-2);
	border: 1px solid var(--bp-border);
	color: var(--bp-text);
	border-radius: var(--bp-radius-sm);
	padding: 4px 6px;
	font-size: 13px;
}
.bp-total { font-size: 13px; color: var(--bp-text-muted); }
.bp-zoom-group { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.bp-zoom-level {
	font-size: 12px;
	color: var(--bp-text-muted);
	width: 48px;
	text-align: center;
	cursor: pointer;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--bp-radius-sm);
	padding: 4px 0;
	font-family: inherit;
}
.bp-zoom-level:hover { background: var(--bp-surface-2); border-color: var(--bp-border); color: var(--bp-text); }

.bp-btn {
	padding: 7px 14px;
	background: var(--bp-surface-2);
	color: var(--bp-text);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.12s;
	white-space: nowrap;
}
.bp-btn:hover { border-color: var(--bp-accent); background: var(--bp-surface); }
.bp-btn-primary {
	background: var(--bp-accent);
	color: #fff;
	border-color: var(--bp-accent);
}
.bp-btn-primary:hover { background: var(--bp-accent-hover); border-color: var(--bp-accent-hover); }
.bp-btn.bp-approved { background: #2da44e; color: #fff; border-color: #2da44e; }

/* ============================================================
   Body layout
   ============================================================ */
.bp-body {
	display: flex;
	flex: 1;
	min-height: 0;
}
.bp-viewer-wrap {
	flex: 1;
	overflow: auto;
	padding: 20px;
	background: var(--bp-surface-2);
	text-align: center;
	min-width: 0;
	min-height: 0;
}
.bp-viewer {
	position: relative;
	display: inline-block;
	background: #fff;
	box-shadow: var(--bp-shadow-lg);
	border-radius: 2px;
	text-align: left;
	max-width: none;
}
.bp-canvas { display: block; }
.bp-annotation-layer {
	position: absolute;
	inset: 0;
}

.bp-approval-strip {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
	justify-content: center;
	margin-top: 12px;
}
.bp-approval-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: var(--bp-surface);
	border: 1px solid var(--bp-border);
	border-radius: 999px;
	color: var(--bp-text-muted);
}
.bp-approval-pill.bp-approval-mine { background: #2da44e; color: #fff; border-color: #2da44e; }
.bp-approval-pill.bp-approval-doc  { border-color: var(--bp-accent); color: var(--bp-accent); }

/* ============================================================
   Pins
   ============================================================ */
.bp-pin {
	position: absolute;
	width: 28px; height: 28px;
	transform: translate(-50%, -100%);
	background: var(--bp-pin);
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 0;
	box-shadow: 0 2px 8px rgba(0,0,0,.4);
	cursor: pointer;
	font-weight: 600;
	font-size: 11px;
	display: flex; align-items: center; justify-content: center;
	transition: transform 0.15s, box-shadow 0.15s;
	padding: 0;
}
.bp-pin:hover { transform: translate(-50%, -100%) scale(1.15); }
.bp-pin-num { transform: rotate(45deg); display: block; line-height: 1; }
.bp-pin {  /* the teardrop is rotated, so rotate child back */ }
.bp-pin .bp-pin-num { transform: rotate(0); }
.bp-pin { transform-origin: 50% 100%; }
.bp-pin-replies {
	position: absolute;
	top: -6px; right: -6px;
	background: #fff;
	color: var(--bp-pin);
	border: 2px solid var(--bp-pin);
	border-radius: 999px;
	width: 16px; height: 16px;
	font-size: 9px;
	line-height: 12px;
	font-weight: bold;
	transform: rotate(0);
}
.bp-pin-resolved    { background: var(--bp-pin-resolved); }
.bp-pin-in_progress { background: var(--bp-pin-progress); }
.bp-pin-selected {
	transform: translate(-50%, -100%) scale(1.25);
	box-shadow: 0 0 0 4px rgba(34,113,177,.3), 0 4px 12px rgba(0,0,0,.5);
	z-index: 5;
}
.bp-pin-pending {
	background: var(--bp-accent);
	animation: bp-pulse 1s infinite;
	pointer-events: none;
}
@keyframes bp-pulse {
	0%,100% { transform: translate(-50%, -100%) scale(1); }
	50%     { transform: translate(-50%, -100%) scale(1.15); }
}

/* ============================================================
   Side panel
   ============================================================ */
.bp-panel {
	width: 380px;
	max-width: 40vw;
	background: var(--bp-surface);
	border-left: 1px solid var(--bp-border);
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.bp-panel-tabs {
	display: flex;
	border-bottom: 1px solid var(--bp-border);
	background: var(--bp-surface-2);
}
.bp-tab {
	flex: 1;
	padding: 12px 8px;
	background: transparent;
	border: 0;
	color: var(--bp-text-muted);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.12s;
}
.bp-tab:hover { color: var(--bp-text); }
.bp-tab-active {
	color: var(--bp-accent);
	border-bottom-color: var(--bp-accent);
	background: var(--bp-surface);
}
.bp-tab-panel {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

/* Filters */
.bp-filters {
	padding: 12px;
	border-bottom: 1px solid var(--bp-border);
	background: var(--bp-surface);
	position: sticky; top: 0; z-index: 2;
}
.bp-search {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	background: var(--bp-surface-2);
	color: var(--bp-text);
	font-size: 13px;
	margin-bottom: 8px;
}
.bp-filter-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
}
.bp-filter-row select {
	padding: 5px 6px;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	background: var(--bp-surface-2);
	color: var(--bp-text);
	font-size: 12px;
	cursor: pointer;
}

/* Threads */
.bp-threads {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bp-empty {
	padding: 30px 20px;
	color: var(--bp-text-muted);
	text-align: center;
	font-size: 13px;
	font-style: italic;
}
.bp-thread {
	border-bottom: 1px solid var(--bp-border);
	padding: 12px 14px;
	transition: background 0.12s;
	cursor: pointer;
}
.bp-thread:hover { background: var(--bp-surface-2); }
.bp-thread-active { background: var(--bp-surface-2); border-left: 3px solid var(--bp-accent); padding-left: 11px; }

/* Comment */
.bp-comment {
	font-size: 13px;
}
.bp-comment-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}
.bp-avatar {
	width: 28px; height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--bp-surface-2);
}
.bp-comment-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	flex: 1;
	min-width: 0;
}
.bp-author {
	font-weight: 600;
	color: var(--bp-text);
}
.bp-time {
	font-size: 11px;
	color: var(--bp-text-muted);
	white-space: nowrap;
}
.bp-role-badge {
	font-size: 9px;
	padding: 2px 6px;
	border-radius: 3px;
	background: var(--bp-surface-2);
	color: var(--bp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-weight: 600;
}
.bp-role-badge-admin    { background: #fef3c7; color: #92400e; }
.bp-role-badge-reviewer { background: #dbeafe; color: #1e40af; }
.bp-role-badge-client   { background: #f3e8ff; color: #6b21a8; }

.bp-page-tag {
	font-size: 10px;
	color: var(--bp-text-muted);
	background: var(--bp-surface-2);
	padding: 2px 6px;
	border-radius: 3px;
	font-weight: 500;
}
.bp-status-badge {
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.bp-status-open        { background: #fee2e2; color: #991b1b; }
.bp-status-in_progress { background: #fef3c7; color: #92400e; }
.bp-status-resolved    { background: #d1fae5; color: #065f46; }

.bp-comment-body {
	margin: 6px 0 8px 36px;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.45;
	color: var(--bp-text);
}
.bp-comment-actions {
	margin-left: 36px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.bp-action {
	background: transparent;
	border: 0;
	color: var(--bp-text-muted);
	font-size: 12px;
	cursor: pointer;
	padding: 2px 0;
	font-weight: 500;
}
.bp-action:hover { color: var(--bp-accent); text-decoration: underline; }
.bp-action-resolve { color: #2da44e; }
.bp-action-reopen { color: #cf222e; }

/* Replies */
.bp-replies {
	list-style: none;
	margin: 8px 0 0 28px;
	padding: 0 0 0 12px;
	border-left: 2px solid var(--bp-border);
}
.bp-replies li { padding: 8px 0; }

/* Reply form */
.bp-reply-form {
	margin: 10px 0 0 36px;
	padding: 10px;
	background: var(--bp-surface-2);
	border-radius: var(--bp-radius-sm);
}
.bp-reply-form textarea,
.bp-edit-textarea {
	width: 100%;
	resize: vertical;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	padding: 6px 8px;
	background: var(--bp-bg);
	color: var(--bp-text);
	font: inherit;
	font-size: 13px;
}
.bp-reply-actions {
	margin-top: 6px;
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

/* Approvals tab */
.bp-approvals-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.bp-approvals-list li {
	padding: 12px 14px;
	border-bottom: 1px solid var(--bp-border);
	font-size: 13px;
}
.bp-approvals-list small { color: var(--bp-text-muted); display: block; margin-top: 4px; }

/* Settings tab */
.bp-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	font-size: 13px;
}

/* ============================================================
   Modal
   ============================================================ */
.bp-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.bp-modal[hidden] { display: none; }
.bp-modal-card {
	background: var(--bp-surface);
	border-radius: var(--bp-radius);
	padding: 24px;
	max-width: 540px;
	width: 100%;
	box-shadow: var(--bp-shadow-lg);
	position: relative;
}
.bp-modal-close {
	position: absolute;
	top: 12px; right: 12px;
	background: transparent;
	border: 0;
	font-size: 22px;
	cursor: pointer;
	color: var(--bp-text-muted);
	line-height: 1;
	width: 28px; height: 28px;
}
.bp-modal-close:hover { color: var(--bp-text); }
.bp-modal-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
}
.bp-modal-textarea {
	width: 100%;
	min-height: 120px;
	resize: vertical;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	padding: 10px;
	background: var(--bp-bg);
	color: var(--bp-text);
	font: inherit;
	font-size: 14px;
}
.bp-modal-error {
	margin-top: 10px;
	padding: 8px 12px;
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
	border-radius: var(--bp-radius-sm);
	font-size: 13px;
	line-height: 1.4;
	word-break: break-word;
}
.bp-modal-footer {
	margin-top: 14px;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
	.bp-body { flex-direction: column; }
	.bp-panel { width: 100%; max-width: 100%; max-height: 50%; border-left: 0; border-top: 1px solid var(--bp-border); }
	.bp-shell { height: auto; min-height: var(--bp-height); }
	.bp-toolbar-center { order: 3; width: 100%; justify-content: center; }
	.bp-version-select { min-width: 0; flex: 1; }
}

@media (max-width: 600px) {
	.bp-toolbar { padding: 8px; }
	.bp-zoom-group { display: none; }
	.bp-btn { padding: 6px 10px; font-size: 12px; }
	.bp-comment-body, .bp-comment-actions, .bp-reply-form { margin-left: 0; }
}

/* ============================================================
   [book_proof_my_projects] grid
   ============================================================ */
.bp-projects-grid {
	display: grid;
	grid-template-columns: repeat(var(--bp-cols, 2), minmax(0, 1fr));
	gap: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	margin: 1em 0;
}
@media (max-width: 700px) {
	.bp-projects-grid { grid-template-columns: 1fr !important; }
}

.bp-project-card {
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid #e1e4e8;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.bp-project-card:hover {
	border-color: #2271b1;
	box-shadow: 0 6px 16px rgba(0,0,0,.08);
	transform: translateY(-1px);
}

.bp-project-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}
.bp-project-title a {
	color: #1f2328;
	text-decoration: none;
}
.bp-project-title a:hover { color: #2271b1; }

.bp-project-meta {
	margin: 0;
	font-size: 13px;
	color: #6e7781;
}
.bp-version-tag {
	display: inline-block;
	background: #f4f5f7;
	color: #1f2328;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
	margin-right: 4px;
}
.bp-uploaded { color: #8b949e; }

.bp-project-status { margin: 0; }

.bp-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
}
.bp-pill-open  { background: #fee2e2; color: #991b1b; }
.bp-pill-clean { background: #d1fae5; color: #065f46; }

.bp-project-cta {
	margin-top: auto;
	display: inline-block;
	padding: 8px 14px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	align-self: flex-start;
	transition: background 0.12s;
}
.bp-project-cta:hover { background: #135e96; color: #fff; }

.bp-project-no-link {
	margin: 0;
	font-size: 12px;
	color: #8b949e;
}

.bp-projects-empty {
	padding: 40px 20px;
	text-align: center;
	color: #6e7781;
	background: #f6f8fa;
	border: 1px dashed #d0d7de;
	border-radius: 8px;
}

/* ============================================================
   Publisher Login widget
   ============================================================ */
.bp-login {
	--bp-login-accent: #1a2942;
	--bp-login-text:   #1f1f1f;
	--bp-login-muted:  #6b6b6b;
	--bp-login-line:   #e6e3dc;
	--bp-login-bg:     #faf9f6;
	--bp-login-radius: 12px;
	--bp-login-serif:  'Iowan Old Style', 'Apple Garamond', Garamond, Georgia, 'Times New Roman', serif;
	--bp-login-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

	font-family: var(--bp-login-sans);
	color: var(--bp-login-text);
	background: var(--bp-login-bg);
	border-radius: var(--bp-login-radius);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(20, 22, 30, 0.10), 0 2px 6px rgba(20, 22, 30, 0.05);
	border: 1px solid var(--bp-login-line);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ----- Split layout ----- */
.bp-login-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	min-height: 580px;
}
.bp-login-split .bp-login-brand {
	background-color: #1a2942;
	background-size: cover;
	background-position: center;
	color: #ffffff;
	padding: 56px 48px;
	display: flex;
	align-items: center;
	position: relative;
}
.bp-login-split .bp-login-brand::after {
	content: '';
	position: absolute;
	inset: 24px;
	border: 1px solid rgba(255,255,255,0.15);
	pointer-events: none;
	border-radius: 4px;
}
.bp-login-split .bp-login-brand-inner {
	max-width: 360px;
	position: relative;
	z-index: 1;
}

/* ----- Centered layout ----- */
.bp-login-centered {
	max-width: 460px;
	margin: 0 auto;
	display: block;
}
.bp-login-centered .bp-login-brand {
	background: transparent;
	padding: 44px 44px 8px;
	text-align: center;
	color: var(--bp-login-text);
}
.bp-login-centered .bp-login-brand-inner {
	max-width: 100%;
}
.bp-login-centered .bp-login-form-area {
	padding: 8px 44px 44px;
}

/* ----- Brand panel content ----- */
.bp-login-logo {
	max-height: 56px;
	max-width: 200px;
	height: auto;
	width: auto;
	margin-bottom: 28px;
	display: block;
}
.bp-login-centered .bp-login-logo {
	margin: 0 auto 20px;
}
.bp-login-title {
	font-family: var(--bp-login-serif);
	font-weight: 500;
	font-size: 36px;
	line-height: 1.15;
	letter-spacing: -0.005em;
	margin: 0 0 14px;
}
.bp-login-centered .bp-login-title {
	font-size: 28px;
	margin-bottom: 8px;
}
.bp-login-tagline {
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
	opacity: 0.85;
	font-weight: 400;
}

/* ----- Form area ----- */
.bp-login-form-area {
	background: #ffffff;
	padding: 56px 56px;
	display: flex;
	align-items: center;
}
.bp-login-form-inner {
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
}
.bp-login-heading {
	font-family: var(--bp-login-serif);
	font-weight: 500;
	font-size: 26px;
	line-height: 1.2;
	margin: 0 0 6px;
	color: var(--bp-login-text);
	letter-spacing: -0.005em;
}
.bp-login-subheading {
	font-size: 14px;
	line-height: 1.5;
	color: var(--bp-login-muted);
	margin: 0 0 28px;
}

/* ----- Inputs ----- */
.bp-login-form { margin: 0; }
.bp-login-field {
	display: block;
	margin-bottom: 18px;
}
.bp-login-field-label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--bp-login-text);
	margin-bottom: 6px;
	text-transform: uppercase;
}
.bp-login-lost {
	color: var(--bp-login-accent);
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}
.bp-login-lost:hover { text-decoration: underline; }

.bp-login input[type="text"],
.bp-login input[type="password"],
.bp-login input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--bp-login-line);
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	background: #ffffff;
	color: var(--bp-login-text);
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
	line-height: 1.4;
}
.bp-login input:focus {
	outline: none;
	border-color: var(--bp-login-accent);
	box-shadow: 0 0 0 3px rgba(26, 41, 66, 0.12);
}
.bp-login input::placeholder { color: #aaa; }

/* ----- Remember me ----- */
.bp-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--bp-login-muted);
	margin: 0 0 24px;
	cursor: pointer;
	user-select: none;
}
.bp-login-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--bp-login-accent);
	cursor: pointer;
}

/* ----- Submit ----- */
.bp-login-submit {
	display: block;
	width: 100%;
	padding: 13px 18px;
	background: var(--bp-login-accent);
	color: #ffffff;
	border: 0;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	font-family: inherit;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.08s, box-shadow 0.15s;
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.bp-login-submit:hover {
	opacity: 0.93;
	box-shadow: 0 4px 14px rgba(26, 41, 66, 0.25);
	color: #ffffff;
}
.bp-login-submit:active { transform: translateY(1px); }

.bp-login-submit-link {
	background: var(--bp-login-accent);
	color: #fff !important;
}

/* ----- Error ----- */
.bp-login-error {
	background: #fdf2f2;
	color: #8b1d1d;
	border: 1px solid #f3c4c4;
	border-left-width: 3px;
	padding: 11px 14px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 13.5px;
	line-height: 1.4;
}

/* ----- Footer note ----- */
.bp-login-footer {
	margin: 26px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--bp-login-line);
	text-align: center;
	color: var(--bp-login-muted);
	font-size: 13px;
	line-height: 1.5;
}
.bp-login-footer a {
	color: var(--bp-login-accent);
	text-decoration: none;
	font-weight: 500;
}
.bp-login-footer a:hover { text-decoration: underline; }

/* ----- Already-logged-in state ----- */
.bp-login-already .bp-login-form-area {
	padding-top: 56px;
	padding-bottom: 56px;
}
.bp-login-already .bp-login-submit {
	margin-top: 8px;
}

/* ----- Responsive ----- */
@media (max-width: 760px) {
	.bp-login-split {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.bp-login-split .bp-login-brand {
		padding: 40px 32px;
		text-align: center;
		justify-content: center;
	}
	.bp-login-split .bp-login-brand::after { inset: 16px; }
	.bp-login-split .bp-login-logo { margin: 0 auto 20px; }
	.bp-login-split .bp-login-brand-inner { max-width: 100%; }
	.bp-login-split .bp-login-form-area { padding: 36px 28px; }
	.bp-login-title { font-size: 28px; }
}
@media (max-width: 480px) {
	.bp-login-form-area { padding: 32px 24px; }
	.bp-login-centered .bp-login-brand,
	.bp-login-centered .bp-login-form-area { padding-left: 24px; padding-right: 24px; }
}
