@font-face {
	font-family: Euclid;
	src: url("../fonts/EuclidCircularA-Regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: Euclid;
	src: url("../fonts/EuclidCircularA-Medium.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	min-height: 100%;
	margin: 0;
	background: #fff;
	color: #111;
	font-family: Euclid, system-ui, sans-serif;
}

button,
input {
	font: inherit;
}

.auth {
	min-height: 100vh;
	min-height: 100dvh;
	background: #fff;
}

.screen {
	width: min(100%, 480px);
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	padding: 24px 24px max(28px, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
}

h1 {
	width: 100%;
	margin: 24px 0 6px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

#phone-step > h1,
#phone-step > .hint {
	text-align: center;
}

.primary-button {
	width: 100%;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 24px;
	background: #2113fe;
	color: #fff;
	cursor: pointer;
}

.primary-button:disabled {
	opacity: 0.65;
	cursor: wait;
}

.skip-button {
	align-self: center;
	min-height: 44px;
	margin-top: 8px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: #666;
	cursor: pointer;
}

.phone-brand {
	width: 180px;
	height: auto;
	margin: auto auto 0;
	padding-top: 24px;
}

.legal {
	margin: 14px 0 8px;
	color: #999;
	font-size: 10px;
	line-height: 1.45;
	text-align: center;
}

.legal a {
	color: inherit;
	text-decoration: underline;
}

.back-button {
	color: #111;
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.back-button img {
	width: 30px;
	height: 30px;
}

.hint {
	margin: 0 0 14px;
	color: #999;
	font-size: 14px;
}

.phone-field {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	margin-top: 4px;
	padding: 12px 16px;
	border-radius: 18px;
	background: #f3f6fb;
	font-size: 18px;
}

.phone-field input {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 18px;
}

.phone-field input::placeholder {
	color: #9ca3af;
}

.legal--form {
	margin: 16px 0 20px;
	color: #737373;
	text-align: left;
}

.error {
	min-height: 18px;
	margin: 8px 0 0;
	color: #d93025;
	font-size: 13px;
}

.code-title {
	margin-top: 24px;
	text-align: center;
	font-size: 22px;
}

.hint--center {
	text-align: center;
	color: #111;
}

.code-boxes {
	display: flex;
	gap: 12px;
	width: 100%;
	margin: 32px auto 0;
}

.code-boxes input {
	flex: 1;
	width: 0;
	height: 64px;
	border: 0;
	border-radius: 18px;
	outline: 0;
	background: #f3f6fb;
	text-align: center;
	font-size: 24px;
}

.code-boxes input:focus {
	background: #e6ebf5;
}

.resend-button {
	align-self: center;
	width: 85%;
	min-height: 48px;
	margin-top: 18px;
	border: 0;
	border-radius: 18px;
	background: #9ba3d4;
	color: #fff;
}

.resend-button:not(:disabled) {
	background: #2113fe;
	cursor: pointer;
}

.home {
	min-height: 100vh;
	min-height: 100dvh;
	background: #fff;
}

.home-brand {
	display: block;
	width: 160px;
	height: auto;
	margin: max(28px, env(safe-area-inset-top)) auto 0;
}

.logout-button {
	position: fixed;
	top: max(16px, env(safe-area-inset-top));
	right: max(16px, env(safe-area-inset-right));
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid #e5e5e5;
	border-radius: 22px;
	background: #fff;
	color: #222;
	font-size: 13px;
	cursor: pointer;
}

[hidden] {
	display: none !important;
}
