/*
 * Shared shell for the short auth screens:
 *   view/forget, view/mfa, view/itsme, view/recover, view/timezone_check
 *
 * Scoped under .rt-auth. Mirrors the inline styles already in view/login.php,
 * view/sign_up.php and view/newaccount.php - those four could be switched over to this file
 * later, but are left alone here so a shared edit cannot regress working pages.
 *
 * Several buttons carry .btn-user / .big_btn_user, which support_style.css sets with
 * !important; the rules below match that and are scoped by id so other views are untouched.
 */
.rt-auth {
	--rt-font:      hind_vadodara_regular, "Segoe UI", Calibri, Arial, sans-serif;
	--rt-font-med:  hind_vadodara_medium, hind_vadodara_regular, "Segoe UI", Calibri, Arial, sans-serif;
	--rt-font-bold: hind_vadodara_semi_bold, hind_vadodara_medium, "Segoe UI", Calibri, Arial, sans-serif;
	--rt-ink:    #0E1424;
	--rt-blue:   #1A1AD1;
	--rt-blue-d: #1414A8;
	--rt-cta:    #1F2430;
	--rt-canvas: #F7F8FC;
	--rt-line:   #E3E5F0;
	--rt-muted:  #3F4656;
	--rt-dot:    #63C8F0;
	--rt-error:  #D93025;
	display: flex;
	min-height: 100vh;
	padding: 16px;
	background: var(--rt-canvas);
	font-family: var(--rt-font);
	color: var(--rt-ink);
}
.rt-auth, .rt-auth *, .rt-auth *::before, .rt-auth *::after { box-sizing: border-box; }

/* ---- left: brand panel ---- */
.rt-visual {
	flex: 0 0 57%;
	display: flex; align-items: center; justify-content: center;
	border-radius: 22px;
	background: linear-gradient(176deg, #14133F 0%, #181794 52%, #1512D9 100%);
	overflow: hidden;
}
.rt-mark { width: 45%; max-width: 480px; height: auto; display: block; }
.rt-mark circle { fill: var(--rt-dot); }

/* ---- right: content panel ---- */
.rt-panel { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 26px 48px 40px; }
.rt-logo { width: 210px; height: auto; max-width: 100%; display: block; }
.rt-form-wrap { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
.rt-form { width: 100%; max-width: 400px; }

.rt-title {
	margin: 0 0 15px;
	font-family: var(--rt-font-bold);
	font-size: 35px; line-height: 1.08; font-weight: 600;
	letter-spacing: -.015em; color: var(--rt-blue);
	text-transform: capitalize; overflow-wrap: break-word;
}
.rt-sub {
	margin: 4px 0 32px;
	font-family: var(--rt-font-med);
	font-size: 24px; line-height: 1.3; font-weight: 500; color: var(--rt-ink);
}
.rt-hint { margin: -22px 0 26px; font-size: 15px; line-height: 1.6; color: var(--rt-muted); }

/* ---- fields ---- */
.rt-auth .form-group { margin: 0 0 18px; }
.rt-auth label {
	display: block; font-family: var(--rt-font); font-weight: 400;
	font-size: 15px; line-height: 1.4; color: var(--rt-muted); margin: 0 0 8px;
}
.rt-auth .form-control {
	height: 44px; width: 100%; padding: 0 14px;
	font-family: var(--rt-font); font-size: 15px; color: var(--rt-ink);
	background: #fff !important;
	border: 1px solid var(--rt-line); border-radius: 10px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.rt-auth .form-control::placeholder { color: #9AA1B4; }
.rt-auth .form-control:focus {
	border-color: var(--rt-blue);
	box-shadow: 0 0 0 3px rgba(26, 26, 209, .12);
	outline: none;
}
.rt-auth .error_sp {
	display: block; font-size: 14px; line-height: 1.45;
	color: var(--rt-error); margin: 6px 0 0;
}
.rt-auth .error_sp:empty { margin: 0; }
.rt-auth .hint { font-size: 14px; color: #6B7280; }

/* ---- buttons ---- */
.rt-auth #forgetpwd_btn,
.rt-auth #userlogin_btn,
.rt-auth #tz_update_btn {
	display: block; width: 100%; height: 48px; padding: 0;
	border: 0 !important; border-radius: 10px;
	background-color: var(--rt-cta) !important;
	color: #fff !important;
	font-family: var(--rt-font-med); font-size: 16px; font-weight: 500;
	letter-spacing: .01em; text-align: center; cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease, transform .06s ease;
}
.rt-auth #forgetpwd_btn:hover,
.rt-auth #userlogin_btn:hover,
.rt-auth #tz_update_btn:hover { background-color: #2B3140 !important; color: #fff !important; }
.rt-auth #forgetpwd_btn:active,
.rt-auth #userlogin_btn:active,
.rt-auth #tz_update_btn:active { transform: translateY(1px); }
.rt-auth #forgetpwd_btn:focus-visible,
.rt-auth #userlogin_btn:focus-visible,
.rt-auth #tz_update_btn:focus-visible { outline: 3px solid rgba(26, 26, 209, .35); outline-offset: 2px; }

.rt-auth #userlogin_close,
.rt-auth .rt-btn-2 {
	display: block; width: 100%; height: 48px; padding: 0;
	border: 1px solid var(--rt-line) !important; border-radius: 10px;
	background-color: #fff !important; color: var(--rt-ink) !important;
	font-family: var(--rt-font-med); font-size: 16px; font-weight: 500;
	cursor: pointer; box-shadow: none;
}
.rt-auth #userlogin_close:hover,
.rt-auth .rt-btn-2:hover { border-color: #BFC4D6 !important; background-color: #fff !important; }
.rt-auth .rt-actions { display: flex; gap: 12px; margin-top: 4px; }
.rt-auth .rt-actions > * { flex: 1 1 0; min-width: 0; }

/* ---- secondary link row ---- */
.rt-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; font-size: 14.5px; margin-top: 26px; }
.rt-meta-link {
	display: inline-block;
	font-family: var(--rt-font-bold); font-weight: 600;
	color: var(--rt-blue) !important; text-decoration: none !important;
	cursor: pointer;
}
.rt-meta-link > span { text-decoration: underline; text-underline-offset: 3px; }
.rt-meta-link:hover { color: var(--rt-blue-d) !important; }
/* Tenant theme saved: the accent follows the portal header colour, via the same CSS
   variables the navbar reads. :not(.is-quiet) keeps the muted link muted. */
.rt-themed .rt-title { color: var(--navbar-color, var(--rt-blue)); }
.rt-themed .rt-meta-link:not(.is-quiet) { color: var(--navbar-color, var(--rt-blue)) !important; }
.rt-themed .rt-meta-link:not(.is-quiet):hover { color: var(--navbar-hover-dark, var(--rt-blue-d)) !important; }
.rt-meta-link.sep::after { content: "\00B7"; margin: 0 9px; color: #C4C9D8; text-decoration: none; }

/* ---- status / done states (itsme, recover, forgot-password success) ---- */
.rt-status { text-align: center; }
.rt-status .rt-spin {
	width: 34px; height: 34px; margin: 0 auto 20px;
	border: 3px solid #E3E5F0; border-top-color: var(--rt-blue);
	border-radius: 50%;
	animation: rt-spin .9s linear infinite;
}
@keyframes rt-spin { to { transform: rotate(360deg); } }
.rt-status .rt-tick {
	width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 20px;
	background: rgba(36, 182, 99, .12); color: #1E9E55;
	display: flex; align-items: center; justify-content: center;
}
/* support_style.css sets h1-h6 to #666 */
.rt-status h1, .rt-status h2, .rt-status h3, .rt-status h4 {
	margin: 0 0 10px; color: var(--rt-ink);
	font-family: var(--rt-font-bold); font-size: 28px; line-height: 1.2;
	font-weight: 600; letter-spacing: -.015em;
}
.rt-status p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--rt-muted); }
.rt-status .rt-meta { justify-content: center; }

/* ---- checkbox row (mfa "trust this browser") ----
   chekkbox_radio.css draws the box in label::before at its static position and the tick in
   label::after at top:-1px, so the two are placed by different rules and the tick lands a
   pixel low; the box itself rides ~4px above the label text because .checkbox carries
   Bootstrap's 20px strut. Both are pinned to one 18px square below, and the tick is an
   inline SVG centred by background-position, so it cannot drift with font metrics.
   Scoped to .rt-check, which only view/mfa.php uses. */
.rt-auth .rt-check { margin: 0 0 22px; }
.rt-auth .rt-check .checkbox {
	position: relative; display: flex; align-items: flex-start;
	padding-left: 26px; min-height: 18px; line-height: 18px;
}
.rt-auth .rt-check .checkbox input[type="checkbox"] {
	position: absolute; top: 0; left: 0; width: 18px; height: 18px; margin: 0; cursor: pointer;
}
.rt-auth .rt-check label {
	display: inline-block; position: static; padding: 0; margin: 0;
	font-size: 15px; line-height: 18px; color: var(--rt-ink); cursor: pointer;
}
.rt-auth .rt-check label::before,
.rt-auth .rt-check label::after {
	top: 0; left: 0; margin: 0; width: 18px; height: 18px; border-radius: 5px;
}
.rt-auth .rt-check label::before { border-color: #C9CEDD; background-color: #fff !important; }
.rt-auth .rt-check .checkbox-user input[type="checkbox"]:checked + label::before {
	background-color: var(--rt-blue) !important; border-color: var(--rt-blue);
}
.rt-auth .rt-check .checkbox-user input[type="checkbox"]:checked + label::after {
	content: "" !important; padding: 0; font-size: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.7 9.6 7.4 11.9 13.3 6.1' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}
.rt-auth .rt-check input[type="checkbox"]:focus-visible + label::before {
	box-shadow: 0 0 0 3px rgba(26, 26, 209, .25);
}
.rt-auth .rt-check .hint { display: block; margin-top: 6px; margin-left: 26px; font-size: 13.5px; color: #6B7280; }

/* ---- recaptcha ---- */
.rt-auth .rt-recaptcha { margin: 0 0 16px; }

/* ---- modals used by the mfa screen ---- */
.rt-modal .modal-content { border: 0; border-radius: 14px; overflow: hidden; }
.rt-modal .modal-header { border-bottom: 1px solid #E3E5F0; padding: 18px 24px; }
.rt-modal .modal-title {
	font-family: hind_vadodara_semi_bold, hind_vadodara_medium, "Segoe UI", sans-serif;
	font-size: 20px; font-weight: 600; color: #0E1424; margin: 0;
}
.rt-modal .modal-body { padding: 22px 24px; font-size: 15px; color: #3F4656; }
.rt-modal .modal-footer { border-top: 1px solid #E3E5F0; padding: 16px 24px; }
.rt-modal .modal-footer .btn {
	height: 42px; padding: 0 20px; border-radius: 9px; border: 0;
	font-family: hind_vadodara_medium, "Segoe UI", sans-serif; font-size: 15px; font-weight: 500;
}
.rt-modal .modal-footer .btn-user {
	background-color: #1F2430 !important; border-color: #1F2430 !important; color: #fff !important;
}
.rt-modal .modal-footer .btn-white,
.rt-modal .modal-footer .btn-primary {
	background-color: #fff !important; border: 1px solid #E3E5F0 !important; color: #0E1424 !important;
}

/* ---- motion ---- */
.rt-form { animation: rt-rise .45s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rt-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- responsive ---- */
@media (max-width: 1100px) { .rt-visual { flex-basis: 48%; } .rt-panel { padding: 24px 32px 36px; } }
@media (max-width: 860px) {
	.rt-auth { display: block; padding: 0; }
	.rt-visual { display: none; }
	.rt-panel { min-height: 100vh; padding: 24px 22px 40px; }
	.rt-title { font-size: 32px; }
	.rt-sub { font-size: 20px; margin-bottom: 26px; }
	.rt-auth .rt-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.rt-form { animation: none; }
	.rt-status .rt-spin { animation-duration: 2s; }
	.rt-auth * { transition: none !important; }
}

/* Copyright: the last line of .rt-panel, on the logo's left edge, so the brand (top)
   and its owner (bottom) frame the form. One step quieter than the quiet End-User
   policy link (#6B7280), so it never reads as something to click. */
.rt-panel .rt-copyright { flex: 0 0 auto; margin: 16px 0 0; font-family: var(--rt-font); font-size: 13px; line-height: 1.4; color: #8B93A1; letter-spacing: .01em; }
/* the copyright sits 20px off the bottom edge, near the logo's 26px top inset; the 16px above it
   only shows where a form fills the panel (sign-up on a short window) */
.rt-auth .rt-panel { padding-bottom: 20px; }
/* Phones: a blue wash instead of the brand panel (which the shell hides below 860px).
   A soft tint of the brand blue (#1A1AD1) at the top, easing into the canvas by the
   bottom: it carries the desktop panel's colour onto the small screen without
   competing with the form - dark ink, white input and the dark button keep their
   contrast. Sized to one screen so a long form (sign-up) settles on plain canvas.
   The copyright stays left, on the form's edge. */
@media (max-width: 860px) {
	.rt-auth.rt-auth {
		background: #F7F8FC linear-gradient(180deg, #DFE1FB 0%, #ECEEFD 45%, #F7F8FC 100%) top / 100% 100vh no-repeat;
	}
}

/* Copyright line: owner | rights | Powered by Fonicom. Light pipes (the .rt-meta separator
   grey) between the parts; the partner mark in its own colours at the text's cap height.
   Below 480px the line cannot hold it all, so "Powered by" takes its own line and only the
   pipe before it goes - the owner | rights pair still fits on one line. */
.rt-panel .rt-copyright { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 6px; }
.rt-copyright .rt-copyright-sep { color: #C4C9D8; }
.rt-copyright .rt-powered { display: inline-flex; align-items: center; gap: 6px; color: inherit !important; text-decoration: none !important; }
.rt-copyright .rt-powered img { display: block; height: 16px; width: auto; }
.rt-copyright .rt-powered:focus-visible { outline: 2px solid var(--rt-blue); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 480px) {
	.rt-copyright .rt-copyright-sep--powered { display: none; }
	.rt-copyright .rt-powered { flex-basis: 100%; }
}
