/* Font Faces */
@font-face {
	font-family: "SF Pro Text";
	src: url("sf-pro-text_regular.woff2") format("woff2");
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Display";
	src: url("sf-pro-display_regular.woff2") format("woff2");
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Icons";
	src: url("sf-pro-cons_regular.woff2") format("woff2");
	font-style: normal;
	font-display: swap;
}

/* Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	width: 100%;
	height: 100%;
	overflow-x: hidden;
}

body {
	width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 0;
	padding-bottom: 120px;
	overflow-x: hidden;
	font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Styles */
.cloudos-toolbar.login.overlay {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	background-color: rgba(251, 251, 253, 0.5);
	backdrop-filter: blur(10px);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: 44px;
	box-sizing: border-box;
	border-bottom: 1px solid rgba(251, 251, 253, 0.5);
}

.cloudos-toolbar .icloud-logo {
	order: 1;
	display: flex;
	align-items: center;
}

.cloudos-toolbar .icloud-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.cloudos-toolbar .icloud-logo svg {
	height: 31px;
	width: 82px;
}

.cloudos-toolbar .action-buttons {
	order: 2;
	display: flex;
	align-items: center;
}

.cloudos-toolbar .help-menu-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background-color: transparent;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	position: relative;
}

.cloudos-toolbar .help-menu-button:hover {
	background-color: rgba(118, 118, 128, 0.12);
}

.cloudos-toolbar .help-menu-button:active {
	background-color: rgba(118, 118, 128, 0.12);
}

.cloudos-toolbar .help-menu-button button {
	display: none;
}

.cloudos-toolbar .help-menu-button svg.ellipsis {
	fill: rgba(0, 0, 0, 0.88);
	width: 22px;
	height: 22px;
}

/* Popover Styles */
ui-popover-content {
	position: absolute;
	top: 48px;
	right: 8px;
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.15);
	padding: 8px 0;
	min-width: 187px;
	display: none;
	z-index: 1001;
}

ui-popover-content.active {
	display: block;
}

ui-menu {
	display: block;
	outline: none;
}

ui-menu-scroll-container {
	display: block;
	max-height: 400px;
	overflow-y: auto;
}

ui-menu-scroll-container a {
	display: block;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

ui-menu-scroll-container a:hover {
	background-color: rgba(0, 0, 0, 0.04);
}

ui-menu-scroll-container a:focus {
	outline: none;
	background-color: rgba(0, 0, 0, 0.06);
}

.cloudos-menu-item {
	display: flex;
	align-items: center;
	padding: 5px;
}

.cloudos-menu-item svg.symbol-icon {
	flex-shrink: 0;
	fill: var(--theme-color-systemBlue, #0071e3);
}

.cloudos-menu-item .label {
	font-family: system-ui, Helvetica Neue, sans-serif;
	flex: 1;
	font-size: 14px;
	line-height: 1.4;
	color: #0071e3;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cloudos-menu-item-opens-in-new-tab {
	width: 14px;
	height: 14px;
	fill: #0071e3;
	opacity: 0.7;
}
.blue {
	color: #0071e3;
}
ui-menu-scroller {
	display: none;
}

.parent-container {
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 11px 34px 0 #78788029;
	width: 640px;
	margin: 0 auto;
	border-radius: 34px;
	margin-top: 88px;
}
/* Fade-in animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(0px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.widget-icon-text {
	left: 0;
	right: 0;
	margin: 40px 80px 25px;
	margin-block-start: 40px;
	position: relative;
	inset-inline-start: 0;
	inset-inline-end: 0;
	margin-inline: 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	animation: fadeIn 0.6s ease-out forwards;
	animation-delay: 1s;
}
.widget-icon-text svg {
	width: 160px;
}
.signin-content {
	min-height: 241px;
	width: 620px;
	max-width: 620px;
	padding: 0 80px 40px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	opacity: 0;
	animation: fadeIn 0.6s ease-out forwards;
	animation-delay: 2s;
}

.signin-content:has(.password.visible) {
	min-height: 260px;
}

.account-name,
.password {
	width: 460px;
	max-width: 460px;
}

.signin-content__footer {
	width: 460px;
	max-width: 460px;
	align-self: flex-start;
	margin-top: 0;
}

/* Combined input fields styling */
.password {
	margin-top: -1px;
}

.account-name.has-password input {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.password.visible input {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.password.visible {
	display: block !important;
}

.continue-button.hidden {
	display: none;
}

.signin-v2__buttons-wrapper__button-wrapper--passkey.hidden {
	display: none;
}

.ue-privacy.hidden {
	display: none;
}

.signin-content__footer__items__right.hidden {
	display: none;
}
.signin-content__footer__items__right {
	margin-top: 12px;
}
.si-remember-password {
	display: none;
}
.sk-icon-external:after {
	content: "";
}

.si-remember-password.visible {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
}
/* Error Message Styles */
.error-message {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	margin-bottom: 12px;
	padding: 0;
	color: #dd2727;
	font-size: 12px;
	line-height: 1.4285914286;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
}

.error-message.visible {
	display: flex;
}

.error-icon {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
}

.error-text {
	color: #dd2727;
}

/* Error State for Inputs */
.account-name.error input,
.password.error input {
	border-color: #dd2727 !important;
}

.account-name.error .form-textbox-label,
.password.error .form-textbox-label {
	color: #dd2727 !important;
}
#sign-in-button {
	display: none;
}

#sign-in-button.visible {
	display: block;
	width: 100%;
	max-width: 460px;
	margin: 0 auto 80px auto;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 1.4285914286;
	font-weight: 300;
	letter-spacing: -0.016em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	padding: 8px 15px;
	border-style: solid;
	border-width: 1px;
	border-color: #00000000;
	border-radius: 8px;
	background-color: #0071e3;
	color: #fff;
	cursor: pointer;
}

#sign-in-button.visible:hover {
	background-color: #0077ed;
}

#sign-in-button.visible:active {
	background-color: #006edb;
}
#sign-in-button.visible:disabled {
	background-color: #a1c4f4;
}
.form-textbox {
	position: relative;
}
.sign-in-label {
	font-family: system-ui, Helvetica Neue, sans-serif;
	margin-top: 20px;
	font-size: 32px;
	font-weight: 600;
	line-height: 36px;
	margin-block-start: 20px;
	text-align: center;
	width: auto;
}
input[type="text"],
input[type="password"] {
	border: 1px solid;
	border-radius: 12px;
	padding-right: 43px;
	background-color: hsla(0, 0%, 100%, 0.8);
	border-color: #86868b;
	color: #494949;
	text-overflow: ellipsis;
	text-align: left;
	padding: 1.0588235294rem 0.9411764706rem 0;
	appearance: none;
	font-size: 17px;
	line-height: 1.2353641176;
	font-weight: 400;
	letter-spacing: -0.022em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	width: 100%;
	height: 3.2941176471rem;
	box-sizing: border-box;
}
.form-textbox-label {
	padding-right: 26px;
	text-overflow: ellipsis;
	z-index: 3;
	color: #6e6e73;
	left: 1rem;
	transition-duration: 0.125s;
	transition-timing-function: ease-in;
	position: absolute;
	pointer-events: none;
	top: 1.0588235294rem;
	white-space: nowrap;
	overflow: hidden;
	max-width: calc(100% - 32px);
	font-size: 17px;
	line-height: 1.2353641176;
	font-weight: 400;
	letter-spacing: -0.022em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
}

.signin-v2__buttons-wrapper {
	position: relative;
	display: flex;
	row-gap: 20px;
	flex-direction: row;
	column-gap: 10px;
	margin-top: 32px;
	flex-wrap: wrap;
	width: 460px;
	max-width: 460px;
	align-self: flex-start;
}
.signin-v2__buttons-wrapper__button-wrapper {
	flex: 1 1 0;
	position: relative;
}
.signin-v2__buttons-wrapper__button-wrapper > div:first-child {
	position: relative;
}

/* Continue Button */
.continue-button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 1.4285914286;
	font-weight: 400;
	letter-spacing: -0.016em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	padding-top: calc(8px);
	padding-right: calc(15px);
	padding-bottom: calc(8px);
	padding-left: calc(15px);
	border-style: solid;
	border-width: 1px;
	border-color: #00000000;
	border-radius: 8px;
	background-color: #0071e3;
	color: #fff;
}

.continue-button:hover {
	background-color: #0076df;
	cursor: pointer;
}

.continue-button:active {
	background-color: #006edb;
}

.continue-button:disabled {
	background-color: #a1c4f4;
	color: #fff;
}

.continue-arrow {
	width: 18px;
	height: 18px;
}

.iphone-icon {
	background-image: url(./iphone-icon-dark.svg);
	background-repeat: no-repeat;
	background-size: contain;
	height: 15px;
	width: 15px;
}
.shared-icon {
	font-family: shared-icons;
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
	font-weight: 400;
	font-style: normal;
	speak: none;
	text-decoration: inherit;
	text-transform: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.button-neutral {
	white-space: nowrap;
	min-width: 30px;
	--sk-button-margin-horizontal: 9px;
	--sk-button-margin-vertical: 9px;
	color: #fff;
	font-size: 14px;
	line-height: 1.4285914286;
	font-weight: 400;
	letter-spacing: -0.016em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	border: 0;
	background-color: #1d1d1f;
	border-color: #00000000;
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
	padding-top: calc(8px);
	padding-right: calc(15px);
	padding-bottom: calc(8px);
	padding-left: calc(15px);
	text-align: center;
	border-radius: 8px;
}
.tk-caption {
	font-size: 12px;
	line-height: 1.3333733333;
	font-weight: 300;
	letter-spacing: -0.01em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	color: #494949;
}

.account-name:has(+ .password.visible) .continue-button {
	display: none;
}

/* Input focus and label animation */
input[type="text"]:focus,
input[type="password"]:focus {
	outline: none;
	border-color: #0071e3;
	background-color: #ffffff;
}

input[type="text"]:focus + .form-textbox-label,
input[type="text"]:not(:placeholder-shown) + .form-textbox-label,
input[type="text"].has-value + .form-textbox-label,
input[type="password"]:focus + .form-textbox-label,
input[type="password"]:not(:placeholder-shown) + .form-textbox-label,
input[type="password"].has-value + .form-textbox-label {
	top: 0.4117647059rem;
	font-size: 12px;
	line-height: 1.3333733333;
	font-weight: 400;
	letter-spacing: -0.01em;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
	opacity: 0;
}

.continue-arrow {
	width: 18px;
	height: 18px;
}

.button-link {
	color: #06c;
	min-width: 0;
	padding: 0;
	white-space: normal;
	background: none;
	border: none;
	text-decoration: none;
	text-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.4705882353;
	font-weight: 400;
	letter-spacing: -0.016em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
	text-align: left !important;
}
.button-link:hover {
	text-decoration: underline;
}

/* Checkbox styles */
.form-checkbox {
	display: flex;
	align-items: center;
	margin: 0;
}

.form-checkbox-input {
	width: 18px;
	height: 18px;
	border: 1px solid #86868b;
	border-radius: 4px;
	background-color: #fff;
	cursor: pointer;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	position: relative;
}

.form-checkbox-input:checked {
	background-color: #0071e3;
	border-color: #0071e3;
}

.form-checkbox-input:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.form-label {
	margin-left: 8px;
	font-size: 14px;
	line-height: 1.4705882353;
	font-weight: 300;
	letter-spacing: -0.016em;
	color: #494949;
	cursor: pointer;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
}

.form-checkbox-indicator {
	display: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.privacy-icon {
	margin: 10px auto;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50%;
	background-image: url(./privacy-icon.png);
	width: 37px;
	height: 29px;
}
.ue-privacy {
	padding: 0 20px;
	opacity: 1;
	height: auto;
	text-align: center;
}
.ue-privacy a {
	color: #06c;
	letter-spacing: inherit;
	text-decoration: none;
}
.privacy-wrapper {
	max-width: none;
	margin-top: 32px;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.3333733333;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: #494949;
}

/* Footer Styles */
.icloud-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 30px 12px 30px 12px;
	background-color: #f5f5f7;
	border-top: 1px solid #d2d2d7;
	z-index: 100;
}

.footer-content {
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	max-width: 1035px;
}

.footer-links {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.footer-link {
	font-size: 11px;
	line-height: 1.33337;
	font-weight: 400;
	letter-spacing: -0.01em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	color: #0000008f;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-copyright {
	font-size: 11px;
	line-height: 1.33337;
	font-weight: 400;
	letter-spacing: -0.01em;
	font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	color: #0000008f;
	margin: 0;
	text-align: right;
	white-space: nowrap;
}
/* Spinner Styles */
.button-spinner {
	display: inline-block;
	width: 44px;
	height: 44px;
	background-image: url(./spinner_48.gif);
	background-size: 32px;
	background-repeat: no-repeat;
	background-position: 50%;
	background-color: transparent;
	mix-blend-mode: multiply;
	vertical-align: middle;
}

.button-loading {
	pointer-events: none;
	position: relative;
}

.button-loading .button-text {
	visibility: hidden;
}

.button-loading .button-spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
}
.tk-caption.mobile {
	display: none !important;
}
.tk-caption.desktop {
	display: block !important;
}
@media screen and (max-width: 768px) {
	body {
		padding-bottom: 160px;
	}

	.widget-icon-text {
		margin-left: 40px;
		margin-right: 40px;
	}
	.parent-container {
		box-shadow: none;
		width: 100%;
		padding-left: 20px;
		padding-right: 20px;
		display: block;
	}
	.signin-content {
		min-height: 241px;
		width: 100%;
		max-width: 100%;
		padding: 0px;
		display: block;
	}
	.account-name,
	.password {
		width: 100%;
		max-width: 100%;
	}
	.signin-v2__buttons-wrapper {
		width: 100%;
		max-width: 100%;
	}
	.tk-caption {
		text-align: center;
		margin-top: 12px;
	}
	.tk-caption.desktop {
		display: none !important;
	}
	.tk-caption.mobile {
		display: block !important;
	}
	.footer-content {
		display: block;
	}
	.footer-copyright {
		text-align: start;
		margin-top: 12px;
	}
	.si-remember-password.visible {
		justify-content: flex-start;
		gap: 12px;
	}
    .error-message .tk-body-reduced.si-forgot-password{
        display: none;
    }
}

@media screen and (max-width: 480px) {
}
