/* clean-code-exception:magic_number stylesheet -- CSS geometry literals are measured figma values, not registry values */
body:has(.redesign_login) {
	min-height: var(--phone_screen_height);
}

/* clean-code-exception:prose_comment figma receipt -- the measured node stack this block transcribes, not narration */
/*
 * Frame 556 `2966:39355`, the login glow container, origin identical to the page frame origin:
 *   Frame 555     1512x875   layer_blur 184  holds both ellipses at FULL opacity
 *   Ellipse 75     533x533   #e535c2  at (23, 47)    layer_blur 260
 *   Ellipse 76     518x518   #7a21dc  at (994, 314)  layer_blur 260
 *   Rectangle 182 1512x1211  #111111  opacity 0.6    a scrim painted OVER both
 */
.redesign_login {
	--field_text_size: 20px;
	--login_glow_rectangle_182_scrim_lets_through: 0.4;
	--login_glow_ellipse_75_width_as_a_fraction_of_the_1512_frame: max(300px, 35.2513%);
	--login_glow_ellipse_76_width_as_a_fraction_of_the_1512_frame: max(300px, 34.2593%);
	--login_glow_blur_holding_the_figma_260_plus_184_stack_at_every_band: max(90px, 10.52vw);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: var(--phone_screen_height);
	padding-bottom: max(env(safe-area-inset-bottom), var(--android_safe_bottom, 0px));
	background: var(--color_black_900);
}

/* clean-code-exception:prose_comment design fork receipt -- records that the motion has no figma source */
/*
 * The frame is a still; the motion is Alon's 2026-08-27 lap. Each blob laps the whole page from
 * its frame position -- pink from the left edge down, across the bottom, up the right and back over
 * the top; purple the same lap half a lap behind, from the right edge -- and eases softly into each
 * edge (Alon 2026-08-28). One shared duration keeps them on opposite sides at every moment.
 */
@keyframes login_glow_lap_pink {
	0%, 100% { transform: translate3d(0, 0, 0); }
	25% { transform: translate3d(31vw, 30vh, 0); }
	50% { transform: translate3d(62vw, 0, 0); }
	75% { transform: translate3d(31vw, -30vh, 0); }
}

@keyframes login_glow_lap_purple {
	0%, 100% { transform: translate3d(0, 0, 0); }
	25% { transform: translate3d(-31vw, -30vh, 0); }
	50% { transform: translate3d(-62vw, 0, 0); }
	75% { transform: translate3d(-31vw, 30vh, 0); }
}

.redesign_login_nav {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: calc(44px + var(--android_safe_top, 0px));
	padding: var(--android_safe_top, 0px) 16px 0;
	background: var(--color_black_900);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.redesign_login_nav_logo {
	display: none;
}

.redesign_login_nav_logo img {
	display: block;
	width: 97px;
}

.redesign_login_nav_title {
	margin: 0;
	font-size: var(--font_size_h7);
	font-weight: var(--font_weight_medium);
	line-height: var(--line_height_h7);
	color: var(--color_white_900);
}

/* clean-code-exception:prose_comment figma receipt -- the measured mechanism this block encodes, not narration */
/*
 * The row (`.redesign_login_nav`) is `flex-direction: row-reverse`, so this title -- the
 * SECOND child in source order, after the logo -- lands at the main-start edge, which
 * row-reverse maps to the row's INLINE-START side. That edge is where `padding: 0 16px`
 * on the row reserves 16px between the glyph and the viewport. Padding added here on the
 * inline-start side would push the glyph inward by the same amount (rule 31's "plausible
 * beats measured" failure), so `margin-inline-start` cancels it 1:1: the padding buys hit
 * area by growing the border-box into the row's own reserved 16px, the equal negative
 * margin lets that box's edge sit exactly where the row's padding already placed it, and
 * the glyph -- offset from the border-box edge by the padding -- ends up back on the x it
 * held before either declaration existed. The inline-end side (facing the logo) has no
 * such fixed edge to protect -- that's the flexible middle gap `space-between` owns -- so
 * its 16px of padding just grows into empty space with nothing to cancel.
 */
a.redesign_login_nav_title {
	display: flex;
	align-items: center;
	padding: 14px 16px;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	a.redesign_login_nav_title:hover {
		text-decoration: underline;
	}
}

a.redesign_login_nav_title:active,
a.redesign_login_nav_title:focus-visible {
	text-decoration: underline;
}

a.redesign_login_nav_title:focus-visible {
	outline: var(--focus_outline_width_flush_to_the_button_edge) solid var(--color_white_900);
	outline-offset: 2px;
}

.redesign_login_content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0;
}

.redesign_login_card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 12px 0 0;
}

/* clean-code-exception:prose_comment figma receipt -- the measured rhythm this block transcribes, not narration */
/*
 * Frame 194 `1440:7094` (mobile) and Pop_Up `2966:39358` (desktop) both stack the form fields
 * then the CTA block with zero gap between them, but the mobile FRAME reserves its free space
 * as one flexible gap ABOVE the CTA block (`figma_spec rhythm 1440:7094`) -- 464px of the 844px
 * frame belongs to no sibling. The desktop card has no such slack: Frame 743 + Frame 196 sum
 * to the whole Pop_Up height. This chain carries the flex only as far down as the CTA block so
 * the slack lands in one place; the desktop override below cancels it by freezing the card's
 * own height back to its content.
 */
.login_form_wrapper,
.login_form_layout {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.login_form_layout > :nth-child(1 of .cta_bar) {
	margin-top: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Eran 21 Oct #2: with the keyboard open the entry buttons were still almost out of sight; the card and its two fields sit a little higher on /login. */
.redesign_login_card:has(.buttons_follow_fields) {
	padding-top: 0;
}

.buttons_follow_fields > .redesign_reg_field {
	padding-block: 4px;
}

.redesign_login .buttons_follow_fields .eye {
	top: 36px;
}

/* Eran round 14 item 2: the phone keyboard hid the login buttons pinned to the screen bottom; on /login only they follow the password field. */
.login_form_layout.buttons_follow_fields > .cta_bar {
	margin-top: 0;
}

.cta_bar + .cta_bar {
	--eran_asked_2026_08_19_for_this_line_between_the_two_login_buttons_figma_has_none: 1px;
	border-top: var(--eran_asked_2026_08_19_for_this_line_between_the_two_login_buttons_figma_has_none) solid rgba(255, 255, 255, 0.1);
}

.redesign_login_headline {
	margin: 0;
	padding: 12px 16px;
	font-size: var(--font_size_h5);
	line-height: var(--line_height_h5);
	font-weight: var(--font_weight_medium);
	color: var(--color_white_900);
	text-align: right;
}

.redesign_login_subtitle {
	margin: 0;
	padding: 0 16px 12px;
	font-size: var(--font_size_body_sm);
	line-height: var(--line_height_body_sm);
	color: var(--color_input_placeholder);
	text-align: right;
}

#hook_forgot_password_wrap .redesign_login_subtitle {
	color: var(--color_white_900);
}

.redesign_login_sms_subtitle {
	margin: 0;
	padding: 0 16px 12px;
	font-size: var(--font_size_body_md);
	line-height: var(--line_height_body_md);
	color: var(--color_white_900);
	text-align: right;
}

.redesign_login .password_wrap:has(+ .redesign_reg_error:not([hidden])) {
	padding-bottom: 0;
}

.redesign_login .password_wrap + .redesign_reg_error {
	padding: 0 16px 12px;
}

.login_form_layout > .redesign_reg_error {
	padding: 0 16px 12px;
}

.redesign_login .expired_link_new_request {
	--reach_above_and_below_the_20px_line_to_the_44px_floor: -12px;
	position: relative;
	display: inline-block;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.redesign_login .expired_link_new_request::after {
	content: '';
	position: absolute;
	inset: var(--reach_above_and_below_the_20px_line_to_the_44px_floor) -4px;
}

@media (hover: hover) and (pointer: fine) {
	.redesign_login .expired_link_new_request:hover {
		text-decoration: none;
	}
}

.redesign_login .expired_link_new_request:active {
	opacity: 0.7;
}

.redesign_login .expired_link_new_request:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.redesign_login .sms_error {
	display: none;
	margin-top: 8px;
	font-size: var(--font_size_body_sm);
	line-height: var(--line_height_body_sm);
	color: var(--color_red_500);
	transition: opacity 1s;
}

.redesign_login .sms_error.show {
	display: block;
}

.redesign_login .sms_error.fade {
	opacity: 0;
}

.redesign_login .eye {
	position: absolute;
	left: 20px;
	top: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	padding: 8px;
	color: var(--color_white_900);
}

.redesign_login .eye svg {
	display: block;
	width: 24px;
	height: 24px;
}

.redesign_login .eye_slash {
	display: none;
}

.redesign_login .eye.is_revealed .eye_slash {
	display: block;
}

#hook_new_password_wrap .eye {
	top: 42px;
	left: 18px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: none;
	cursor: pointer;
}

#hook_new_password_wrap .eye:hover {
	opacity: 0.8;
}

#hook_new_password_wrap .eye:active {
	opacity: 0.6;
}

#hook_new_password_wrap .eye:focus-visible {
	outline: 2px solid var(--color_white_900);
	outline-offset: -2px;
	border-radius: 8px;
}

#hook_new_password_field {
	padding-left: 44px;
}

.redesign_login_forgot_wrap {
	padding: 8px 16px 4px;
	text-align: center;
}

.redesign_login_forgot_link {
	font-size: var(--font_size_body_md);
	font-weight: var(--font_weight_medium);
	line-height: var(--line_height_body_md);
	color: var(--color_white_900);
	text-decoration: underline;
}

.redesign_login_forgot_link:hover,
.redesign_login_forgot_link:focus,
.redesign_login_forgot_link:active {
	text-decoration: none;
}

.cta_bar .redesign_login_sms_cta {
	background: var(--color_black_700);
	border: 2px solid var(--color_pink_500);
}

.redesign_login_reg_prompt {
	margin: 16px 0 0;
	padding: 0 16px;
	font-size: var(--font_size_body_sm);
	line-height: 20px;
	color: var(--color_white_900);
	text-align: center;
}

.login_form_layout > .redesign_login_reg_prompt {
	--figma_1440_7103_row_slack_below_the_20px_reg_text_in_its_48px_row: 14px;
	--figma_1440_7103_cta_block_bottom_padding: 16px;
	padding-bottom: calc(var(--figma_1440_7103_row_slack_below_the_20px_reg_text_in_its_48px_row) + var(--figma_1440_7103_cta_block_bottom_padding));
}

.redesign_login_reg_prompt a {
	color: var(--color_pink_500);
	text-decoration: underline;
}

.redesign_login_reg_prompt a:hover,
.redesign_login_reg_prompt a:focus,
.redesign_login_reg_prompt a:active {
	text-decoration: none;
}

.redesign_login .login_input_shell {
	position: relative;
	box-sizing: border-box;
	height: 48px;
	padding: 0;
	background: var(--color_field_surface);
	border: 1px solid var(--color_field_border);
	border-radius: 8px;
	overflow: hidden;
}

.redesign_login .login_input_shell .redesign_reg_input {
	height: 100%;
	padding: 12px;
	background: transparent;
	background-clip: content-box;
	border: none;
	border-radius: 7px;
}

.redesign_login .redesign_reg_input:-webkit-autofill,
.redesign_login .redesign_reg_input:-webkit-autofill:hover,
.redesign_login .redesign_reg_input:-webkit-autofill:focus,
.redesign_login .redesign_reg_input:-webkit-autofill:active {
	-webkit-text-fill-color: var(--color_white_900);
	-webkit-box-shadow: 0 0 0 1000px var(--color_field_surface) inset;
	caret-color: var(--color_white_900);
}

.redesign_login .redesign_reg_cta {
	flex-direction: row-reverse;
}

.redesign_login .redesign_reg_cta[data-pending] {
	flex-direction: row;
}

.redesign_reg_cta_icon {
	display: block;
	width: 24px;
	flex: none;
}

.redesign_reg_cta_hidden_input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.pass_reminder_wrap {
	display: none;
}

.redesign_login.forgot_pass .login_form_wrapper {
	display: none;
}

.redesign_login.forgot_pass .pass_reminder_wrap {
	display: block;
}

.redesign_login_toast {
	position: fixed;
	left: 50%;
	top: calc(24px + var(--android_safe_top, 0px));
	transform: translate(-50%, -16px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
	z-index: 20;
	padding: 12px 20px;
	background: var(--color_black_700);
	color: var(--color_white_900);
	border-radius: 8px;
	font-size: var(--font_size_body_sm);
	text-align: center;
}

.redesign_login_toast.is_visible {
	transform: translate(-50%, 0);
	opacity: 1;
	visibility: visible;
	transition: opacity .25s ease, transform .25s ease;
}

.sms_login_wrap,
#hook_otp_wrap {
	padding: 24px;
	background: var(--color_page_background);
	border: 2px solid var(--color_button_edge);
	border-radius: 12px;
	color: var(--color_white_900);
	text-align: right;
	max-width: 343px;
}

/* clean-code-exception:prose_comment the scope this reset needs is not nameable in the selector alone */
/* enter_code.tpl and verify_old_phone.tpl reuse #hook_otp_wrap as a LIGHTBOX, where the card above is
   correct and login.css is loaded (login_screen.js still opens that lightbox). On the /otp page the
   same block sits inside .redesign_login_card, which already IS Login_07's Pop_Up 2966:39950 -- the
   only filled, bordered box the frame draws -- so here, and only here, the block paints nothing. */
#hook_otp_page_wrap #hook_otp_wrap {
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	max-width: none;
}

#hook_otp_page_wrap .redesign_login_subtitle,
#hook_otp_page_wrap .otp_timer,
#hook_otp_page_wrap .support_message {
	color: var(--color_white_900);
}

/* Login_07 type (1666:10856 / 2966:39946), Eran round 5 item 13. */
#hook_otp_page_wrap .redesign_login_subtitle {
	font-size: var(--font_size_body_md);
	line-height: 24px;
}

#hook_otp_page_wrap .otp_timer,
#hook_otp_page_wrap .support_message {
	line-height: 20px;
}

#hook_otp_page_wrap .support_link {
	line-height: 20px;
	text-decoration: underline;
}

.sms_login_wrap h3,
.otp_wrap h3 {
	margin: 0 0 16px;
	font-size: var(--font_size_h6);
	line-height: var(--line_height_h6);
	font-weight: var(--font_weight_medium);
}

.sms_login_wrap label {
	display: block;
}

.sms_login_wrap input,
.otp_wrap input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 12px;
	box-sizing: border-box;
	background: var(--color_input_surface);
	border: 1px solid var(--color_input_border);
	border-radius: 8px;
	font-size: var(--font_size_body_md);
	color: var(--color_white_900);
	text-align: center;
}

.sms_login_wrap button,
.otp_wrap button {
	display: block;
	width: 100%;
	height: 48px;
	margin-top: 16px;
	background: linear-gradient(262deg, var(--color_purple_500) 0%, var(--color_pink_500) 100%);
	border: none;
	border-radius: 12px;
	font-size: var(--font_size_h7);
	font-weight: var(--font_weight_medium);
	color: var(--color_white_900);
	cursor: pointer;
}

.sms_login_wrap b {
	display: block;
	margin-top: 12px;
	font-size: var(--font_size_body_sm);
	font-weight: var(--font_weight_regular);
	color: var(--color_input_placeholder);
}

.sms_login_wrap b svg {
	display: none;
}

.failed_sent_mode .cf {
	display: flex;
	gap: 12px;
}

.failed_sent_mode .cf button {
	margin-top: 0;
}

.otp_timer,
.support_message {
	margin-top: 12px;
	font-size: var(--font_size_body_sm);
	color: var(--color_input_placeholder);
	text-align: center;
}

.support_link {
	color: var(--color_pink_500);
}

.redesign_login .bad_otp,
.otp_wrap .bad_otp {
	margin-top: 8px;
	font-size: var(--font_size_body_sm);
	color: var(--color_red_500);
	text-align: center;
}

.failed_sent_mode {
	display: none;
}

.id_otp_form > :nth-child(1 of .cta_bar) {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.redesign_login_password_updated {
	padding: 0;
	text-align: center;
}

.password_updated_message {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
}

.password_updated_illustration {
	display: block;
	width: 200px;
	height: 200px;
}

.sms_login_input:focus {
	outline: 2px solid var(--color_pink_500);
	outline-offset: 0;
}

.cta_bar .sms_login_cta {
	opacity: 1;
	pointer-events: auto;
}

.forgot_password_sent[hidden],
.forgot_password_sent_cta[hidden] {
	display: none;
}

.forgot_password_sent_message {
	margin: 0;
	font-size: var(--font_size_body);
	line-height: var(--line_height_body);
	font-weight: var(--font_weight_regular);
	color: var(--color_white_900);
	text-align: center;
}

.redesign_login_password_updated .redesign_login_headline {
	padding: 0;
	font-size: var(--font_size_h5);
	line-height: var(--line_height_h5);
	text-align: center;
}

.redesign_login_password_updated .cta_bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
	.redesign_login_card:has(.buttons_follow_fields) {
		padding-top: 12px;
	}

	.buttons_follow_fields > .redesign_reg_field {
		padding-block: 12px;
	}

	.redesign_login .buttons_follow_fields .eye {
		top: 44px;
	}

	.login_form_layout > .redesign_login_reg_prompt {
		padding-bottom: 0;
	}

	/* clean-code-exception:prose_comment figma receipt -- names the band that owns Rectangle 182 */
	/*
	 * Rectangle 182 exists only on the desktop frame, so only this band carries the scrimmed
	 * page fill; Login_01 `1440:7092` draws the mobile page as a flat #212121 with no glow and
	 * no scrim at all, which is the fill UC-LG5 pins and the base rule above keeps.
	 */
	.redesign_login {
		--field_text_size: var(--font_size_body_md);
		--login_glow_page_fill_is_212121_already_scrimmed_by_rectangle_182: #171717;
		background: var(--login_glow_page_fill_is_212121_already_scrimmed_by_rectangle_182);
	}

	.redesign_login::before,
	.redesign_login::after {
		content: '';
		position: absolute;
		aspect-ratio: 1;
		border-radius: 50%;
		filter: blur(var(--login_glow_blur_holding_the_figma_260_plus_184_stack_at_every_band));
		opacity: var(--login_glow_rectangle_182_scrim_lets_through);
		pointer-events: none;
		z-index: 0;
		will-change: transform;
	}

	.redesign_login::before {
		width: var(--login_glow_ellipse_75_width_as_a_fraction_of_the_1512_frame);
		left: 1.5212%;
		top: 47px;
		background: #e535c2;
		animation: login_glow_lap_pink 30s cubic-bezier(0.35, 0.15, 0.65, 0.85) infinite;
	}

	.redesign_login::after {
		width: var(--login_glow_ellipse_76_width_as_a_fraction_of_the_1512_frame);
		left: 65.7407%;
		top: 314px;
		background: #7a21dc;
		animation: login_glow_lap_purple 30s cubic-bezier(0.35, 0.15, 0.65, 0.85) infinite;
	}

	.redesign_login_nav {
		flex-direction: row-reverse;
		height: 72px;
		padding-left: max(16px, calc(50% - var(--desktop_nav_row_max_width) / 2));
		justify-content: space-between;
		border-bottom: none;
	}

	.redesign_login_nav_logo {
		display: block;
	}

	.redesign_login_nav_logo img {
		width: 110.5px;
		height: 32px;
	}

	a.redesign_login_nav_title {
		margin-inline-start: -16px;
	}

	.redesign_login_content {
		padding: 0 0 80px;
	}

	.redesign_login_card {
		z-index: 1;
		flex: none;
		width: 464px;
		margin: 80px auto 0;
		padding-bottom: 12px;
		background: var(--color_black_900);
		border: 2px solid rgba(255, 255, 255, 0.1);
		border-radius: 12px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
	}

	#hook_password_updated_wrap .redesign_login_content {
		padding-bottom: 72px;
	}

	.redesign_login_password_updated {
		width: 420px;
		margin: auto;
		padding: 20px;
		gap: 32px;
		background: none;
		border: 0;
		box-shadow: none;
	}

	.password_updated_message {
		flex: none;
		gap: 16px;
		padding: 0;
	}

	.password_updated_illustration {
		width: 160px;
		height: 160px;
	}

	.redesign_login_password_updated .redesign_login_headline {
		font-size: var(--font_size_h6);
		line-height: var(--line_height_h6);
	}

	.redesign_login_password_updated .cta_bar {
		width: 320px;
		margin: 0 auto;
		padding: 0;
		border-top: 0;
	}
}

.grecaptcha-badge {
	display: none;
}
#hook_no_robot {
	display: none;
	margin: 20px 0;
}
#hook_no_robot.shown {
	display: block;
}
