* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

figure {
	margin: 0;
}

/*global setup for auth*/
.screen-wrapper {
	align-items: center;
	box-sizing: border-box;
	height: 100vh;
	width: 100%;
	max-width: 520px;
	position: relative;
	background-color: #12121270;
	margin: auto;
	padding: 0 16px;
}

.font-londrina-xl {
	font-family: "Londrina Solid", sans-serif;
	font-weight: 900;
	font-style: normal;
	font-size: 2.5em;
	-webkit-text-stroke: 2px #212121;
	color: #fff;
}

.font-londrina-sm {
	font-family: "Londrina Solid", sans-serif;
	font-weight: 900;
	font-style: normal;
	font-size: 16px;
	-webkit-text-stroke: 1px #212121;
	color: #fff;
}

.font-inter-sm {
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-style: normal;
	font-size: 16px;
	color: #fff;
}

.font-inter-xs {
	font-family: "Inter", sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 13px;
	color: #fff;
}

.font-courier-xs {
	font-family: "Courier New", Courier, monospace;
	font-weight: 500;
	font-style: normal;
	font-size: 13px;
	color: #fff;
}

/*Auth BG*/

.auth-bg-character {
	position: absolute;
	z-index: -1;
	overflow: hidden;
	right: 0px;
	top: 0px;
}

.auth-bg-container {
	background-color: black;
}

.helper {
	border: 1px solid #fff;
}

header > .auth-top-nav {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-top: 14px;
	justify-content: space-between;
	align-items: start;
	height: 100px;
}

header > .auth-top-nav > div {
	display: flex;
	flex-direction: column;
	align-items: start;
}

header > .top-navigation-phrase {
	margin-top: 35px;
}

.auth-main-content {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/*common-input*/
.card {
	background-color: rgba(217, 217, 217, 0.18);
	backdrop-filter: blur(8px);
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	width: 100%;
}

.terminal-header {
	background-color: #202425;
	padding: 15px;
	display: flex;
	align-items: center;
}

.terminal-title {
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: "Inter", sans-serif;
	font-weight: 800;
}

.terminal-icon {
	color: #ff3a4a;
}

.terminal-body {
	background-color: #202425;
	color: #ffffff;
	padding: 16px;
}

.command-line {
	display: flex;
	align-items: start;
	flex-direction: column;
	gap: 16px;
}

.prompt {
	color: #ffffff;
	margin-right: 10px;
	margin-bottom: -4px;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	font-size: 16px;
}

.input-wrapper {
	position: relative;
	width: 100%;
}

.input-field {
	background-color: #000;
	border: none;
	border-radius: 8px;
	color: #047dff;
	font-family: inherit;
	font-size: 16px;
	outline: none;
	width: 100%;
	padding: 10px;
	font-family: "Inter", sans-serif;
	font-weight: 800;
}

.terminal-body .verification-code-wrapper {
	display: flex;
	justify-content: space-around;
	gap: 8px;
}

.code-field {
	background-color: #000;
	height: 62px;
	border: 1px solid #ffffff50;
	border-radius: 6px;
	color: #fff;
	font-family: inherit;
	font-size: 30px;
	text-align: center;
	outline: none;
	width: 100%;
	padding-right: 10px;
	font-family: "Inter", sans-serif;
	font-weight: 900;
}

.input-field::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.code-field::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

/*Enter Button Type 1*/
.button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	background-color: #000;
	color: #fff;
	font-size: 18px;
	border: 0.5px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 8px;
	height: 65px;
	padding: 12px;
	width: 100%;
	border-radius: 15px 15px 12px 12px;
	cursor: pointer;
	position: relative;
	will-change: transform;
	transition: all 0.1s ease-in-out 0s;
	user-select: none;
	/* Add gradient shading to each side */
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
	background-position: bottom right, bottom right;
	background-size: 100% 100%, 100% 100%;
	background-repeat: no-repeat;
	box-shadow: inset -4px -10px 0px rgba(255, 255, 255, 0.4), inset -4px -8px 0px rgba(0, 0, 0, 0.3), 0px 2px 1px rgba(0, 0, 0, 0.3),
		0px 2px 1px rgba(255, 255, 255, 0.1);
	transform: perspective(70px) rotateX(5deg) rotateY(0deg);
}

.button::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.5));
	z-index: -1;
	border-radius: 15px;
	box-shadow: inset 4px 0px 0px rgba(255, 255, 255, 0.1), inset 4px -8px 0px rgba(0, 0, 0, 0.3);
	transition: all 0.1s ease-in-out 0s;
}

.button::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
	background-position: bottom right, bottom right;
	background-size: 100% 100%, 100% 100%;
	background-repeat: no-repeat;
	z-index: -1;
	border-radius: 15px;
	transition: all 0.1s ease-in-out 0s;
}

.button:active {
	will-change: transform;
	transform: perspective(80px) rotateX(1deg) rotateY(0deg) translateY(2px) scale(0.96);
	height: 64px;
	border: 0.25px solid rgba(0, 0, 0, 0.2);
	box-shadow: inset -4px -8px 0px rgba(255, 255, 255, 0.2), inset -4px -6px 0px rgba(0, 0, 0, 0.8), 0px 1px 0px rgba(0, 0, 0, 0.9),
		0px 1px 0px rgba(255, 255, 255, 0.2);
	transition: all 0.1s ease-in-out 0s;
}

.button::after:active {
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.2));
}

.button:active::before {
	content: "";
	display: block;
	position: absolute;
	top: 5%;
	left: 20%;
	width: 50%;
	height: 80%;
	background-color: rgba(255, 255, 255, 0.1);
	animation: overlay 0.1s ease-in-out 0s;
	pointer-events: none;
}

.button svg {
	width: 15px;
	height: 15px;
}

@keyframes overlay {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.button:focus {
	outline: none;
}

/*Glitch 이펙트 CSS*/
.glitch {
	position: relative;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	z-index: 1;
	animation: shift 1s ease-in-out infinite alternate;
}

.glitch:before,
.glitch:after {
	display: block;
	content: attr(data-glitch);
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0.8;
}

.glitch:before {
	animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
	color: #8b00ff;
	z-index: -1;
}

.glitch:after {
	animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
	color: #00e571;
	z-index: -2;
}

@keyframes glitch {
	0% {
		transform: translate(0);
	}

	20% {
		transform: translate(-3px, 2px);
	}

	40% {
		transform: translate(-3px, -2px);
	}

	60% {
		transform: translate(3px, 2px);
	}

	80% {
		transform: translate(3px, -2px);
	}

	to {
		transform: translate(0);
	}
}

@keyframes shift {
	0%,
	40%,
	44%,
	58%,
	61%,
	65%,
	69%,
	73%,
	100% {
		transform: skewX(0deg);
	}

	41% {
		transform: skewX(8deg);
	}

	42% {
		transform: skewX(-8deg);
	}

	59% {
		transform: skewX(20deg) skewY(5deg);
	}

	60% {
		transform: skewX(-10deg) skewY(-5deg);
	}

	63% {
		transform: skewX(10deg) skewY(-5deg);
	}

	70% {
		transform: skewX(-10deg) skewY(-5deg);
	}

	71% {
		transform: skewX(10deg) skewY(-5deg);
	}
}

/*decoration*/
@keyframes blinkCursor {
	50% {
		border-right-color: transparent;
	}
}

@keyframes typingOnly {
	from {
		width: 0;
	}
	to {
		width: 13em; /* 실제 글자 길이에 맞춰 조정 */
	}
}

.terminal-loader {
	border: 0.1em solid #333;
	background-color: #1a1a1a;
	color: #00ff62;
	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	padding: 10px 14px;
	width: 100%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.green_text {
	display: inline-block;
	margin-bottom: -2px;
	white-space: nowrap;
	overflow: hidden;
	border-right: 0.2em solid green; /* Cursor */
	animation: typingOnly 1s steps(20, end), blinkCursor 0.5s step-end infinite;
	line-height: 1.5;
	letter-spacing: -0.8px;
}

.green_text-no-cursor {
	display: inline-block;
	margin-bottom: -2px;
	white-space: nowrap;
	overflow: hidden;
	animation: typingOnly 1s steps(20, end);
	line-height: 1.5;
	letter-spacing: -0.8px;
}

.underline {
	height: 0.4px;
	width: 100%;
	background-color: #ffffff20;
}

footer > .footer {
	font-size: 13px;
	color: #ffffff50;
	padding: 16px 0px 30px 0px;
	overflow-wrap: break-word; /* 단어 단위로 줄바꿈 */
}

/*오버레이 입력 영역*/

/* Submit 버튼 스타일 */
.submit-btn {
	height: 60px;
	background-color: #da0404;
	border-radius: 10px;
}

.submit-btn > span {
	display: block;
	font-size: 15px;
	font-family: Inter, sans-serif;
	font-weight: 700;
	color: white;
	text-align: center;
	margin-bottom: 2px;
}

/* 오버레이 전체 영역 */
#overlay {
	position: fixed;
	top: -500%;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.85); /* 반투명 배경 */
	transition: top 0.3s ease;
	z-index: 999;
}

/* 오버레이 내부 콘텐츠 */
.overlay-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background-color: #0e0e0e;
	margin: 0 auto;
	padding: 20px;
	width: 100%;
	max-width: 500px;
	border-radius: 0px 0px 10px 10px;
	max-height: 58%;
	min-height: 540px;
	color: #fff;
}

.overlay-content > .auth-password-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.overlay-content > .overlay-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.overlay-content > .overlay-header > button {
	padding: 8px;
	background-color: transparent;
	border-radius: 8px;
}

/* 오버레이 활성화 클래스 */
#overlay.active {
	top: 0px;
}

/* Toast 스타일 */
.login-toast {
	visibility: hidden;
	width: 95vw;
	background-color: #000000;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 15px;
	position: fixed;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	transition: opacity 2s ease;
	font-size: 14px;
	font-weight: 800;
	font-family: Inter, sans-serif;
	border: 1px solid red;
	max-width: 500px;
}

.login-toast.show {
	visibility: visible;
	opacity: 1;
}

/*Enter Button type 2*/

.auth-options {
	display: flex;
	gap: 1em;
}

.auth-options > .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 5em;
	background-color: #171717;
	border-radius: 5px;
}

.auth-options .sign-up-btn {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	height: 5.7em;
	border-radius: 10px;
	border: none;
	outline: none;
	background-color: #b12b0d;
	box-shadow: rgba(0, 0, 0, 0.377) 10px 10px 8px, #da0404 2px 2px 10px 0px inset, #d42a02 -4px -4px 1px 0px inset;
	cursor: pointer;
	font-family: Montserrat;
	transition: 0.1s ease-in-out;
}
.auth-options .find-password-btn {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	height: 5.7em;
	border-radius: 10px;
	border: none;
	outline: none;
	background-color: #545251;
	box-shadow: rgba(0, 0, 0, 0.377) 10px 10px 8px, #a8a6a4 1.5px 1.5px 1px 0px inset, #545251 -3.2px -3.2px 8px 0px inset;
	cursor: pointer;
	font-family: Montserrat;
	transition: 0.1s ease-in-out;
}

.auth-options .button_text {
	color: white;
	padding-top: 0.9em;
	line-height: 1.3;
	letter-spacing: 0.075em;
	font-size: 0.95em;
	transition: 0.1s ease-in-out;
}

.sign-up-btn:active,
.find-password-btn:active {
	box-shadow: rgba(0, 0, 0, 0.377) 0px 0px 0px, inset 0.5px 0.5px 4px #000000, #c7c3c0 -3.2px -3.2px 8px 0px inset;
}

footer > .sns-shortcuts {
	display: flex;
	justify-content: space-evenly;
	margin: 40px 10px 10px 10px;
}

/*SNS Buttons*/
.keyboard-button {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #000;
	color: #fff;
	font-size: 44px;
	border: 0.5px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 8px;
	width: 60px;
	height: 65px;
	border-radius: 15px 15px 12px 12px;
	cursor: pointer;
	position: relative;
	will-change: transform;
	transition: all 0.1s ease-in-out 0s;
	user-select: none;
	/* Add gradient shading to each side */
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
	background-position: bottom right, bottom right;
	background-size: 100% 100%, 100% 100%;
	background-repeat: no-repeat;
	box-shadow: inset -4px -10px 0px rgba(255, 255, 255, 0.4), inset -4px -8px 0px rgba(0, 0, 0, 0.3), 0px 2px 1px rgba(0, 0, 0, 0.3),
		0px 2px 1px rgba(255, 255, 255, 0.1);
	transform: perspective(70px) rotateX(5deg) rotateY(0deg);
}

.keyboard-button::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.5));
	z-index: -1;
	border-radius: 15px;
	box-shadow: inset 4px 0px 0px rgba(255, 255, 255, 0.1), inset 4px -8px 0px rgba(0, 0, 0, 0.3);
	transition: all 0.1s ease-in-out 0s;
}

.keyboard-button::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
	background-position: bottom right, bottom right;
	background-size: 100% 100%, 100% 100%;
	background-repeat: no-repeat;
	z-index: -1;
	border-radius: 15px;
	transition: all 0.1s ease-in-out 0s;
}

.keyboard-button:active {
	will-change: transform;
	transform: perspective(80px) rotateX(5deg) rotateY(1deg) translateY(3px) scale(0.96);
	height: 64px;
	border: 0.25px solid rgba(0, 0, 0, 0.2);
	box-shadow: inset -4px -8px 0px rgba(255, 255, 255, 0.2), inset -4px -6px 0px rgba(0, 0, 0, 0.8), 0px 1px 0px rgba(0, 0, 0, 0.9),
		0px 1px 0px rgba(255, 255, 255, 0.2);
	transition: all 0.1s ease-in-out 0s;
}

.keyboard-button::after:active {
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.2));
}

.keyboard-button:active::before {
	content: "";
	display: block;
	position: absolute;
	top: 5%;
	left: 20%;
	width: 50%;
	height: 80%;
	background-color: rgba(255, 255, 255, 0.1);
	animation: overlay-btn 0.1s ease-in-out 0s;
	pointer-events: none;
}

@keyframes overlay-btn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.keyboard-button:focus {
	outline: none;
}
.invis {
	color: #0000;
}

/*find*/

.reminder-docs {
	color: white;
	font-size: 13px;
	word-break: keep-all;
	margin-bottom: 220px;
	background-color: #121212;
	padding: 20px;
	border-radius: 10px;
	border: 1px solid #ffffff30;
}

.absolute-bottom-contents {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	padding: 24px 10px 30px 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background-color: black;
	max-width: 520px;
	width: 100%;
}

.auth-set-password-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/*password combination validator*/

.opt-length-span {
	color: red;
}

.opt-capital-span {
	color: red;
}

.opt-combi-span {
	color: red;
}

/*skip referrer*/

/*referrer 추가/없애기 버튼*/

.skip-ref-btn {
	padding: 10px;
	background-color: #047dff;
	color: #fff;
	border-radius: 8px;
}

.skip-referrer {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

/*go Back to Origin Btn(login global )*/

.back-to-origin-btn {
	padding: 12px;
	display: block;
	background-color: #000000;
	border-radius: 16px;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-style: normal;
	font-size: 14px;
	color: #fff;
	border: 1px solid #ffffff90;
}
