﻿/* ══════════════════════════════════════════════
   TomatoAICUT Auth Styles (Login / Signup)
   ══════════════════════════════════════════════ */

/* ── 레이아웃 ── */
.page {
	min-height: 100vh;
	display: flex;
}

/* ── 브랜드 사이드 ── */
.brand-side {
	width: 420px;
	flex-shrink: 0;
	background: var(--red);
	display: flex;
	flex-direction: column;
	padding: 48px 44px;
	position: relative;
	overflow: hidden;
}

@media (max-width: 860px) {
	.brand-side {
		display: none;
	}
}

.brand-side::before {
	content: '';
	position: absolute;
	right: -80px;
	top: -80px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
}

.brand-side::after {
	content: '';
	position: absolute;
	left: -60px;
	bottom: -100px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgba(0,0,0,.08);
}

.bs-logo {
	font-size: 20px;
	font-weight: 900;
	color: #fff;
	letter-spacing: -.3px;
	position: relative;
	z-index: 1;
}

.bs-tagline {
	margin-top: auto;
	position: relative;
	z-index: 1;
}

.bs-title {
	font-size: 28px;
	font-weight: 900;
	color: #fff;
	line-height: 1.3;
	letter-spacing: -.03em;
	margin-bottom: 14px;
}

.bs-desc {
	font-size: 14px;
	color: rgba(255,255,255,.75);
	line-height: 1.75;
	margin-bottom: 32px;
}

.bs-features {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bs-feat {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: rgba(255,255,255,.85);
}

.bs-feat-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bs-foot {
	margin-top: 40px;
	font-size: 12px;
	color: rgba(255,255,255,.5);
	position: relative;
	z-index: 1;
}

/* ── 폼 사이드 ── */
.form-side {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	overflow-y: auto;
}

.form-box {
	width: 100%;
	max-width: 440px;
}

.form-logo {
	font-size: 16px;
	font-weight: 900;
	color: var(--text);
	letter-spacing: -.3px;
	margin-bottom: 36px;
	display: none;
}

	.form-logo span {
		color: var(--red);
	}

@media (max-width: 860px) {
	.form-logo {
		display: block;
	}
}

.form-head {
	margin-bottom: 32px;
}

.form-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--red);
	background: var(--red-light);
	border: 1px solid var(--red-border);
	padding: 4px 12px;
	border-radius: 100px;
	margin-bottom: 14px;
}

.form-title {
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -.03em;
	color: var(--text);
	margin-bottom: 6px;
}

.form-desc {
	font-size: 13px;
	color: var(--text-5);
	line-height: 1.7;
}

/* ── 입력 필드 ── */
.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.fl {
	font-size: 10px;
	font-weight: 700;
	color: var(--text-6);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.input-wrap {
	position: relative;
}

input[type=email], input[type=password], input[type=text], input[type=tel] {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--border);
	border-radius: 9px;
	font-family: 'Noto Sans KR', sans-serif;
	font-size: 14px;
	color: var(--text);
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	background: var(--surface);
}

input:focus {
	border-color: var(--text-2);
	box-shadow: 0 0 0 3px rgba(232,40,26,.25);
}

input::placeholder {
	color: var(--text-7);
}

input.has-icon {
	padding-right: 44px;
}

input.valid {
	border-color: var(--green);
}

input.invalid {
	border-color: var(--red);
}

.input-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-6);
	padding: 4px;
	display: flex;
	align-items: center;
	transition: color .15s;
}

	.input-btn:hover {
		color: var(--text);
	}

.field-err {
	font-size: 11px;
	color: var(--red);
	margin-top: 2px;
	display: none;
}

	.field-err.show {
		display: block;
	}

/* ── 버튼 ── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: 'Noto Sans KR', sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 13px 20px;
	border-radius: 9px;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: all .2s cubic-bezier(.4,0,.2,1);
	width: 100%;
}

	.btn:disabled {
		opacity: .45;
		cursor: not-allowed;
		pointer-events: none;
	}

.btn-red {
	background: var(--red);
	color: #fff;
}

	.btn-red:hover:not(:disabled) {
		background: var(--red-hover);
		transform: translateY(-1px);
		box-shadow: 0 4px 16px rgba(232,40,26,.25);
	}

/* ── 옵션 행 ── */
.row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.remember-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: var(--text-4);
}

.custom-cb {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--border-md);
	border-radius: 5px;
	background: var(--surface);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s;
}

	.custom-cb.on {
		background: var(--red);
		border-color: var(--red);
	}

.forgot-link {
	font-size: 13px;
	color: var(--text-5);
	text-decoration: none;
	transition: color .15s;
}

	.forgot-link:hover {
		color: var(--text);
	}

/* ── 구분선 ── */
.divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0;
	color: var(--text-7);
	font-size: 11px;
}

	.divider::before, .divider::after {
		content: '';
		flex: 1;
		height: 1px;
		background: var(--border);
	}

/* ── 하단 링크 ── */
.form-bottom {
	text-align: center;
	margin-top: 28px;
	font-size: 13px;
	color: var(--text-5);
}

	.form-bottom a {
		color: var(--red);
		text-decoration: none;
		font-weight: 600;
	}

		.form-bottom a:hover {
			opacity: .8;
		}

/* ── 성공 상태 ── */
.success-box {
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 16px 0;
}

	.success-box.show {
		display: flex;
	}

.success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--green-light);
	border: 2px solid var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}

/* ── 체크박스 ── */
.cb-wrap {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	margin-bottom: 12px;
}

.cb-text {
	font-size: 13px;
	color: var(--text-4);
	line-height: 1.6;
}

	.cb-text a {
		color: var(--red);
		text-decoration: none;
		font-weight: 600;
	}

		.cb-text a:hover {
			opacity: .8;
		}

/* ── 스피너 ── */
.spin-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.3);
	border-top-color: #fff;
	animation: spin 1s linear infinite;
	display: none;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}
