/* OMR SaaS — branded auth screens ([omr_login], [omr_signup], account extras).
   Uses the OMR Sheet Maker theme tokens when present, with plain fallbacks. */

.omr-auth, .omr-auth-change {
	--a-primary: var(--omr-primary, #4338ca);
	--a-primary-dark: var(--omr-primary-dark, #312e81);
	--a-accent: var(--omr-accent, #f59e0b);
	--a-ink: var(--omr-ink, #0b1020);
	--a-muted: var(--omr-muted, #5b6478);
	--a-line: var(--omr-line, #e2e5ee);
	--a-card: var(--omr-card, #ffffff);
	--a-bg: var(--omr-bg, #f6f7fb);
}
.omr-auth {
	display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	max-width: 940px; margin: 12px auto 40px;
	background: var(--a-card); border: 1px solid var(--a-line); border-radius: 22px;
	box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .35); overflow: hidden;
	font-family: inherit;
}

/* Brand panel */
.omr-auth-side {
	position: relative; padding: 40px 36px; color: #fff;
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.14), transparent 55%),
		linear-gradient(155deg, var(--a-primary) 0%, var(--a-primary-dark) 100%);
	display: flex; flex-direction: column; gap: 14px; min-height: 100%;
}
.omr-auth-brand { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.omr-auth-pitch { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; }
.omr-auth-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.omr-auth-points li { position: relative; padding-left: 28px; line-height: 1.4; opacity: .95; }
.omr-auth-points li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--a-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2321160a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.omr-auth-sheet { width: 120px; margin-top: auto; align-self: flex-end; opacity: .9; }
.omr-auth-sheet circle { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.6; }
.omr-auth-sheet circle.f { fill: var(--a-accent); stroke: var(--a-accent); }

/* Form panel */
.omr-auth-main { padding: 34px 40px 36px; color: var(--a-ink); }
.omr-auth-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 24px; background: var(--a-bg); border-radius: 12px; }
.omr-auth-tabs a {
	flex: 1; text-align: center; padding: 9px 12px; border-radius: 9px;
	font-weight: 650; font-size: 14.5px; color: var(--a-muted); text-decoration: none;
}
.omr-auth-tabs a:hover { color: var(--a-ink); }
.omr-auth-tabs a.is-active { background: var(--a-card); color: var(--a-primary); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.omr-auth-main h2, .omr-auth-main h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.omr-auth-sub { margin: 0 0 20px; color: var(--a-muted); font-size: 15px; line-height: 1.5; }

.omr-auth-form { display: grid; gap: 16px; margin: 0; }
.omr-auth-field label, .omr-auth-main .omr-field label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--a-ink); }
.omr-auth-field input, .omr-auth-main .omr-field input, .omr-auth-change input[type=password] {
	width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px;
	font: inherit; font-size: 16px; color: var(--a-ink); background: #fff;
	border: 1.5px solid var(--a-line); border-radius: 11px; transition: border-color .15s, box-shadow .15s;
}
.omr-auth-field input:focus, .omr-auth-main .omr-field input:focus, .omr-auth-change input:focus {
	outline: none; border-color: var(--a-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a-primary) 16%, transparent);
}
.omr-auth-pw { position: relative; }
.omr-auth-pw input { padding-right: 72px; }
.omr-auth-eye {
	position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 12px;
	border: 0; border-radius: 8px; background: transparent; color: var(--a-primary);
	font: 600 13px/1 inherit; font-family: inherit; cursor: pointer;
}
.omr-auth-eye:hover { background: var(--a-bg); }
.omr-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.omr-auth-row a, .omr-auth-alt a { color: var(--a-primary); font-weight: 600; text-decoration: none; }
.omr-auth-row a:hover, .omr-auth-alt a:hover { text-decoration: underline; }
.omr-auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--a-muted); cursor: pointer; }
.omr-auth-check input { width: 17px; height: 17px; accent-color: var(--a-primary); }
.omr-auth-submit, .omr-auth-main .omr-actions .omr-btn { width: 100%; justify-content: center; height: 48px; font-size: 16px; }
.omr-auth-alt { margin: 20px 0 0; text-align: center; color: var(--a-muted); font-size: 14.5px; }

.omr-auth-alert { margin: 0 0 16px; padding: 11px 14px; border-radius: 11px; font-size: 14.5px; line-height: 1.45; border: 1px solid; }
.omr-auth-alert.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.omr-auth-alert.is-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

/* The sign-up shortcode inside the shell: flatten its own card styling */
.omr-auth-main .omr-tool { padding: 0; margin: 0; border: 0; box-shadow: none; background: none; }
.omr-auth-main .omr-tool > h2:first-child { margin-top: 0; }
.omr-auth-main .omr-field { margin: 0 0 16px; }
.omr-auth-main .omr-note { margin: 0 0 16px; border-radius: 11px; }
.omr-auth-main .lead { color: var(--a-muted); font-size: 15px; }
.omr-auth-main form + form .omr-btn.secondary { width: 100%; justify-content: center; }

/* Account page: change-password panel */
.omr-auth-change { margin: 22px 0 0; border: 1px solid var(--omr-line, #e2e5ee); border-radius: 14px; padding: 4px 18px; background: var(--omr-card, #fff); }
.omr-auth-change summary { cursor: pointer; padding: 12px 0; font-weight: 650; }
.omr-auth-change .omr-auth-form { padding: 4px 0 18px; max-width: 420px; }

@media (max-width: 820px) {
	.omr-auth { grid-template-columns: 1fr; border-radius: 18px; margin-top: 4px; }
	.omr-auth-side { padding: 22px 22px 20px; min-height: 0; }
	.omr-auth-pitch { font-size: 19px; }
	.omr-auth-points, .omr-auth-sheet { display: none; }
	.omr-auth-main { padding: 24px 20px 28px; }
}
@media (max-width: 380px) {
	.omr-auth-main { padding: 20px 14px 24px; }
	.omr-auth-row { flex-direction: column; align-items: flex-start; }
}

.omr-auth-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--a-muted); line-height: 1.4; }
.omr-auth-missing { color: #b45309; font-weight: 600; }
.omr-auth-phone summary strong { font-variant-numeric: tabular-nums; }
