/* ================================================
	ibisPaint Login Page Styles
================================================ */

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

body {
	font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', Meiryo, メイリオ, sans-serif;
	background: #ffffff;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: url("/img/ibisLogin/login_bg.webp") no-repeat center / cover;
	z-index: -1;
	opacity: 0;
	transition: opacity 2s ease;
}

body.bg-loaded::before {
	opacity: 1;
}

main:lang(ar),
main:lang(he) {
	direction: rtl;
}

/* ================================================
	Layout Components
================================================ */

/* Container */
.container {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 100vh;
	padding: 20px 20px 40px;
}

/* Login Card */
.login-card {
	width: auto;
	background: #ffffff;
	border: 1px solid #d3dce2;
	border-radius: 16px;
}

.login-content {
	max-width: 400px;
	margin: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ================================================
	Header Section
================================================ */

.header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	direction: ltr;
	justify-content: space-between;
	width: 100%;
	min-height: 47px;
	margin-bottom: 12px;
}

.logo-section {
	display: flex;
	align-items: flex-end;
	gap: 3px;
}

.logo-image {
	width: 92.596px;
	height: 32px;
	position: relative;
}

.logo-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

/* Language Selector */
#header-search-area {
	background: #ffffff;
	border-radius: 8px;
}

#select-lang select {
	color: #3b3d40;
	font-size: 12px;
	line-height: 1;
	width: 110px;
	height: 40px;
	padding: 8px 8px 8px 12px;
	border: none;
	border-radius: 5px;
	outline: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: url(/img/btn/selectLang_handle.png) no-repeat 78px -2px;
	transition: background-color 0.2s;
}

#select-lang select:hover {
	background-color: #f4f6f9;
}

/* ================================================
	Main Content Areas
================================================ */

.contents-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	flex: 1;
}

/* ================================================
	Login Section
================================================ */

.login-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.login-error {
	font-size: 14px;
	color: #d32f2f;
	font-weight: bold;
	margin-bottom: 8px;
}

.login-form-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.login-form-title {
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 8px;
}

.login-description {
	font-size: 12px;
	color: #999999;
	text-align: start;
}

.login-button {
	width: 100%;
	background: #eeeeee;
	border: none;
	border-radius: 8px;
	padding: 8px;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	transition: background-color 0.2s;
	line-height: normal;
	white-space: nowrap;
}

.login-button:hover {
	background: #e0e0e0;
}

/* ================================================
	Account Section
================================================ */

.account-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.account-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.account-text {
	font-size: 12px;
	font-weight: 400;
	text-align: start;
}

.create-account-button {
	width: 100%;
	height: fit-content;
	background: #67a525;
	border: none;
	border-radius: 8px;
	padding: 8px;
	line-height: normal;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s;
}

.create-account-button:hover {
	background: #5a8f20;
}

/* ================================================
	Agreement Section
================================================ */

.agreement-section {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.agreement-text {
	font-size: 12px;
	font-weight: 400;
	color: #999999;
}

.agreement-text a {
	color: #67a525;
	text-decoration: none;
	transition: text-decoration 0.2s;
}

.agreement-text a:hover {
	text-decoration: underline;
}

/* ================================================
	Divider
================================================ */

.divider {
	width: 100%;
	height: 1px;
	background: #d9e0e6;
}

/* ================================================
	SNS Section
================================================ */

.sns-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sns-title {
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	margin-bottom: 8px;
}

.sns-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.sns-button {
	width: 40px;
	height: 40px;
	background: #eeeeee;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 7px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.sns-button:hover {
	background: #e0e0e0;
}

.sns-icon {
	width: 20px;
	height: 20px;
}

.sns-description {
	font-size: 12px;
	font-weight: 400;
	color: #999999;
	line-height: 1.5;
}

/* ================================================
	Benefits Section
================================================ */

.benefits-section {
	border: 1px solid #b0b0b0;
	border-radius: 8px;
	padding: 8px;
}

.benefits-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.benefits-title {
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.benefits-description {
	font-size: 12px;
	font-weight: 400;
}

.benefits-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.benefit-item {
	display: flex;
	align-items: flex-start;
	gap: 0;
}

.check-icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	margin: 3px 4px 4px;
}

.benefit-text {
	font-size: 12px;
	font-weight: 400;
	flex: 1;
}

/* ================================================
	Back Button
================================================ */

.back-button {
	width: 100%;
	background: #ffffff;
	border: 1px solid #eeeeee;
	border-radius: 8px;
	padding: 8px 40px;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	transition: background-color 0.2s;
}

.back-button:hover {
	background: #f9f9f9;
}

/* ================================================
	Responsive Design
================================================ */

@media (max-width: 440px) {
	.container {
		align-items: flex-start;
		padding: 0;
	}

	.login-card {
		border: none;
		border-radius: 0;
	}

	body::before {
		background-image: none;
		background-color: #ffffff;
	}
}
