/*
File: css/login-popup.css
Purpose: Login popup #19033 — restyled in the residential calculator's
         calm design language (cool palette, Geologica, soft elevation,
         12–18px radii, input-shell fields). FULL REPLACEMENT for the
         previous login-popup.css.
Version: 2.0.1
Date:    2026-06-01
Notes:
- All rules scoped to #popmake-19033. No changes to style.css are required:
  ID specificity (+ matching !important) overrides the legacy theme rules.
- The email form is gap-driven, so when reCAPTCHA moves to invisible v3 and
  the widget disappears, the layout collapses cleanly with no orphan gap.
- Google leads (Nextend button, brand-correct); email is the fallback;
  the installer link is demoted to a quiet "wrong door" triage signpost.
*/

/* ============================================================
 * Design tokens (scoped) — shared with the residential calculator
 * ========================================================== */
#popmake-19033 {
	--ink:           #0F2237;
	--ink-2:         #1A3354;
	--text:          #243C58;
	--text-2:        #5C708A;
	--text-3:        #8E9CAE;
	--action:        #1665D8;
	--action-deep:   #0E4FB2;
	--tint:          #EAF2FC;
	--tint-soft:     #F4F8FD;
	--border:        #E2E8F0;
	--border-soft:   #EDF1F6;
	--border-strong: #C8D4E2;
	--r-card:        18px;
	--r-soft:        12px;
	--f-display:     'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--f-body:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
 * Modal shell — replace the 5px navy border with a calm card
 * ========================================================== */
#popmake-19033.pum-container {
	max-width:     452px !important;
	background:    #fff !important;
	border:        1px solid var(--border-soft) !important;
	border-radius: var(--r-card) !important;
	box-shadow:    0 24px 64px rgba(15,34,55,.22), 0 4px 14px rgba(15,34,55,.10) !important;
	overflow:      hidden;
}
#popmake-19033 .pum-content { padding: none; }
#popmake-19033 .wp-block-columns,
#popmake-19033 .wp-block-column { display: block; margin: 0; }

/* Close button (Popup Maker theme controls its glyph; we just calm it) */
#popmake-19033 .pum-close {
	position: absolute; top: 14px; right: 14px;
	width: 32px; height: 32px; min-width: 0;
	border: 0 !important; border-radius: var(--r-soft) !important;
	background: transparent !important; color: var(--text-3) !important;
	cursor: pointer; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	box-shadow: none !important;
	transition: background .15s ease, color .15s ease;
}
#popmake-19033 .pum-close:hover { background: var(--tint-soft) !important; color: var(--ink) !important; }

/* ============================================================
 * Title + subtitle (replaces the stacked H4/H6 headers)
 * ========================================================== */
#popmake-19033 .login-title {
	font-family:    var(--f-display) !important;
	font-weight:    700 !important;
	font-size:      24px !important;
	line-height:    1.15 !important;
	letter-spacing: -0.015em;
	color:          var(--ink) !important;
	margin:         0 0 6px !important;
}
#popmake-19033 .login-subtitle {
	font-family: var(--f-body) !important;
	font-weight: 400 !important;
	font-size:   14.5px !important;
	line-height: 1.5 !important;
	color:       var(--text-2) !important;
	margin:      0 0 22px !important;
	max-width:   36ch;
}

/* ============================================================
 * [native_reg_login] — hide native WP fields, keep only Google
 * ========================================================== */
#popmake-19033 #loginform { margin: 0; padding: 0; }
#popmake-19033 #loginform > p,
#popmake-19033 #loginform .login-username,
#popmake-19033 #loginform .login-password,
#popmake-19033 #loginform .login-remember,
#popmake-19033 #loginform .login-submit,
#popmake-19033 .lost-password-link,
#popmake-19033 .nextend-social-login-container { display: none !important; }
/* defensive: the old [expand] swap span is gone, but hide if cached */
#popmake-19033 .collapseomatic,
#popmake-19033 .colomat-swap { display: none !important; }

/* Nextend Google button — calm, brand-correct (kills the 5px border) */
#popmake-19033 .nsl-container { clear: both; margin: 0; }
#popmake-19033 .nsl-container-block .nsl-container-buttons { display: block; padding: 0; }
#popmake-19033 .nsl-container .nsl-container-buttons a { width: 100%; margin: 0; }
#popmake-19033 .nsl-container .nsl-button-google {
	border:        0 !important;
	padding:       0 !important;
	border-radius: var(--r-soft) !important;
	background:    #fff !important;
	box-shadow:    inset 0 0 0 1px var(--border-strong) !important;
	height:        50px;
	display:       flex; align-items: center;
	transition:    box-shadow .15s ease, background .15s ease;
}
#popmake-19033 .nsl-container .nsl-button-google:hover {
	background: var(--tint-soft) !important;
	box-shadow: inset 0 0 0 1px var(--border-strong), 0 4px 14px rgba(15,34,55,.10) !important;
}
#popmake-19033 .nsl-button-svg-container { padding: 0 4px 0 14px !important; }
#popmake-19033 .nsl-button-google div.nsl-button-label-container {
	font-family:    var(--f-display) !important;
	font-size:      15px !important;
	font-weight:    500 !important;
	color:          var(--ink) !important;
	margin:         0 14px 0 10px !important;
	letter-spacing: 0 !important;
}

/* Privacy note under Google */
#popmake-19033 .note1 {
	font-family: var(--f-body) !important;
	font-size:   12.5px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color:       var(--text-3) !important;
	margin:      12px 2px 0 !important;
}

/* ============================================================
 * "ή με email" divider (replaces the H4 + the floating "ή")
 * ========================================================== */
#popmake-19033 .or-separator {
	display: flex; align-items: center; gap: 12px;
	width: 100%; margin: 22px 0 18px;
}
#popmake-19033 .or-separator::before,
#popmake-19033 .or-separator::after {
	content: ''; flex: 1; border-bottom: 1px solid var(--border-soft);
}
#popmake-19033 .or-separator span {
	font-family:    var(--f-body) !important;
	font-size:      12.5px; font-weight: 500; letter-spacing: .01em;
	color:          var(--text-3); text-transform: none; padding: 0;
}

/* ============================================================
 * [uwp_login] — email / password fallback
 * ========================================================== */
#popmake-19033 .uwp-login-class .card,
#popmake-19033 .uwp-login-class .card-body { box-shadow: none !important; padding: 0 !important; border: 0 !important; }
#popmake-19033 .uwp-login-class .card-title { display: none !important; }
#popmake-19033 .uwp_page .row { margin: 0; }

/* keep the plugin's visually-hidden labels hidden (placeholder = label) */
#popmake-19033 .visually-hidden {
	position: absolute !important; width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: -1px !important; overflow: hidden !important;
	clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* gap-driven form: the single source of vertical rhythm, so removing the
   reCAPTCHA block (invisible v3) re-flows with no orphaned spacing */
#popmake-19033 .uwp-login-form { display: flex; flex-direction: column; gap: 14px; }
#popmake-19033 .uwp-login-form .mb-3 { margin: 0 !important; }

/* text + password inputs as calculator input-shells */
#popmake-19033 .uwp-login-form .form-control {
	height:        48px;
	width:         100%;
	border:        1.5px solid var(--border) !important;
	border-radius: var(--r-soft) !important;
	background:    #fff !important;
	padding:       0 14px !important;
	font-family:   var(--f-display) !important;
	font-size:     15px !important;
	font-weight:   500 !important;
	color:         var(--ink) !important;
	box-shadow:    none !important;
	transition:    border-color .15s ease, box-shadow .15s ease;
}
#popmake-19033 .uwp-login-form .form-control::placeholder { color: var(--text-3); font-weight: 500; }
#popmake-19033 .uwp-login-form .form-control:focus {
	border-color: var(--action) !important;
	box-shadow:   0 0 0 4px rgba(22,101,216,.10) !important;
	outline:      none !important;
}
/* password row: input + eye toggle behave as one shell */
#popmake-19033 .uwp-password-wrap .input-group {
	display: flex; align-items: center;
	height: 48px;
	border:        1.5px solid var(--border) !important;
	border-radius: var(--r-soft) !important;
	background: #fff; overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
#popmake-19033 .uwp-password-wrap .input-group:focus-within {
	border-color: var(--action) !important;
	box-shadow:   0 0 0 4px rgba(22,101,216,.10) !important;
}
#popmake-19033 .uwp-password-wrap .input-group .form-control {
	border: 0 !important; box-shadow: none !important; flex: 1; height: 100%;
}
#popmake-19033 .uwp-password-wrap .input-group-text {
	background: transparent !important; border: 0 !important; padding: 0 12px; margin: 0;
	color: var(--text-3); cursor: pointer; display: flex; align-items: center;
}
#popmake-19033 .uwp-password-wrap .input-group-text:hover { color: var(--action); }
#popmake-19033 .uwp-password-wrap .input-group-text i,
#popmake-19033 .uwp-password-wrap .input-group-text svg { display: block; }

/* reCAPTCHA slot — neutral; no extra frame. When hidden (v3) the gap
   simply re-flows, no orphan space (the .mb-3 carries no margin). */
#popmake-19033 .uwp-captcha-render { display: block; }

/* remember-me — undo the global checkbox scale(1.4) blow-up */
#popmake-19033 input[type="checkbox"] {
	-webkit-transform: none !important;
	-ms-transform:     none !important;
	transform:         none !important;
	width: 18px; height: 18px; min-width: 18px;
	accent-color: var(--action);
	margin: 0 8px 0 0;
}
#popmake-19033 .uwp-remember-me .form-check {
	display: flex; align-items: center; gap: 0; padding: 0; min-height: 0;
}
#popmake-19033 .uwp-remember-me .form-check-label {
	font-family: var(--f-body) !important;
	font-size:   13.5px !important; color: var(--text-2) !important; margin: 0; cursor: pointer;
}

/* submit — calculator primary blue, sentence case (kills navy + uppercase) */
#popmake-19033 .uwp_login_submit,
#popmake-19033 .btn.btn-primary {
	background:     var(--action) !important;
	color:          #fff !important;
	border:         0 !important;
	border-radius:  var(--r-soft) !important;
	height:         48px;
	width:          100%;
	margin-top:     4px;
	font-family:    var(--f-display) !important;
	font-size:      15px !important;
	font-weight:    600 !important;
	letter-spacing: .005em !important;
	text-transform: none !important;
	box-shadow:     0 6px 20px rgba(22,101,216,.28), 0 1px 3px rgba(22,101,216,.20) !important;
	transition:     background .15s ease;
}
#popmake-19033 .uwp_login_submit:hover,
#popmake-19033 .btn.btn-primary:hover { background: var(--action-deep) !important; }

/* footer links — quiet, balanced row */
#popmake-19033 .uwp-footer-links {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 16px; gap: 12px;
}
#popmake-19033 .uwp-footer-link.float-end { float: none; }
#popmake-19033 .uwp-footer-links a {
	font-family: var(--f-display) !important;
	font-size:   13px !important; font-weight: 500 !important;
	color:       var(--action) !important; text-decoration: none;
}
#popmake-19033 .uwp-footer-links a:hover { color: var(--action-deep) !important; text-decoration: underline; }

/* ============================================================
 * Installer triage — quiet "wrong door" signpost (not a CTA)
 * ========================================================== */
#popmake-19033 .installer-triage {
	display: flex; align-items: flex-start; gap: 10px;
	margin-top: 22px; padding-top: 18px;
	border-top: 1px solid var(--border-soft);
}
#popmake-19033 .installer-triage svg,
#popmake-19033 .installer-triage .installer-icon { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; margin-top: 1px; }
#popmake-19033 .installer-triage-text {
	font-family: var(--f-body) !important;
	font-size:   12.5px !important; line-height: 1.5 !important; color: var(--text-3) !important;
}
#popmake-19033 .installer-triage-text a {
	color: var(--action) !important; font-weight: 600; white-space: nowrap; text-decoration: none;
}
#popmake-19033 .installer-triage-text a:hover { text-decoration: underline; }

/* Preserve prior behaviour: no focus outline on the popup trigger */
.pum-trigger:focus { outline: none; }
