/**
 * 오라클래스 로그인/회원가입 페이지 스타일
 * (functions.php에서 /login/, /signup/ 페이지에만 로드됨)
 */

/* ── 페이지 공통 ── */
body.page-au-auth {
	background: #F5F0EA;
}
body.page-au-auth .site-main {
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", sans-serif;
	letter-spacing: -0.01em;
}
body.page-au-auth .entry-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ── 카드 ── */
body.page-au-auth .cosmosfarm-members-form {
	max-width: 420px;
	margin: 40px auto 72px;
	background: #FFFFFF;
	border-radius: 16px;
	padding: 40px 36px 34px;
}
body.page-au-auth .cosmosfarm-members-form .login-card {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	max-width: none;
	margin: 0;
}

/* 카드 타이틀 (로그인 카드 헤더 / 회원가입 주입 헤더) */
body.page-au-auth .login-header h2,
body.page-au-auth .login-header .login-title,
.au-card-title {
	font-size: 24px !important;
	font-weight: 800 !important;
	letter-spacing: -0.03em;
	text-align: center;
	color: #221C15;
	margin: 0 0 6px !important;
}
body.page-au-auth .login-subtitle,
.au-card-sub {
	font-size: 14px !important;
	color: #7D7466 !important;
	text-align: center;
	margin: 0 0 30px !important;
}

/* ── SNS 영역 (카카오 + 추후 채널) ── */
.au-sns-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin: 0 0 6px;
}
.au-sns-wrap .social-login-section,
.au-sns-wrap .cosmosfarm-social-login {
	width: 100% !important;
}
.au-bubble {
	align-self: center;
	display: inline-block;
	background: #222222 !important;
	color: #FFFFFF !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	padding: 6px 14px !important;
	border-radius: 999px;
	margin: 0 0 9px !important;
	white-space: nowrap;
	position: relative;
	text-align: center;
	animation: au-bubble-float 2.2s ease-in-out infinite;
}
.au-bubble::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #222222;
}
@keyframes au-bubble-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

/* 소셜 버튼 공통 (플러그인 앵커 + 주입 앵커 모두) */
.au-sns-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 9px !important;
	width: 100% !important;
	height: 52px !important;
	border-radius: 8px !important;
	font-size: 15.5px !important;
	font-weight: 800 !important;
	letter-spacing: -0.01em;
	text-decoration: none !important;
	transition: filter 0.15s ease;
	margin: 0 0 10px !important;
}
.au-sns-btn:hover, .au-sns-btn:focus-visible { filter: brightness(0.95); }
.au-sns-btn img, .au-sns-btn svg {
	width: 22px !important;
	height: 22px !important;
	flex-shrink: 0;
	display: inline-block !important;
}

/* 채널별 브랜드 컬러 (연동을 켜면 자동으로 이 스타일 적용) */
.au-sns-kakao { background: #FEE500 !important; color: #191600 !important; }
.au-sns-naver { background: #03C75A !important; color: #FFFFFF !important; }
.au-sns-google { background: #FFFFFF !important; color: #3C4043 !important; border: 1px solid #DADCE0 !important; }
.au-sns-facebook { background: #1877F2 !important; color: #FFFFFF !important; }
.au-sns-apple { background: #000000 !important; color: #FFFFFF !important; }
.au-sns-line { background: #06C755 !important; color: #FFFFFF !important; }

/* 플러그인 소셜 섹션 리셋 (플러그인 CSS가 나중에 로드되므로 강한 지정) */
body.page-au-auth .social-login-section { margin: 0 !important; padding: 0 !important; border: none !important; }
body.page-au-auth .cosmosfarm-social-login { display: flex !important; flex-direction: column; align-items: stretch; text-align: center; padding-bottom: 0 !important; }
body.page-au-auth .cosmosfarm-social-login-title { display: none !important; }
body.page-au-auth .cosmosfarm-social-login a {
	margin: 0 0 10px !important;
	padding: 0 !important;
	opacity: 1 !important;
}
body.page-au-auth .cosmosfarm-social-login a:hover {
	transform: none !important;
	opacity: 1 !important;
}
body.page-au-auth .cosmosfarm-social-login a img {
	width: 22px !important;
	height: 22px !important;
}

/* ── 구분선 ── */
.au-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 22px;
	font-size: 12.5px;
	color: #A69C8D;
}
.au-divider::before, .au-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #EFE9E0;
}

/* ── 입력 필드 (라이트 그레이) ── */
body.page-au-auth .cosmosfarm-members-form input[type="text"],
body.page-au-auth .cosmosfarm-members-form input[type="email"],
body.page-au-auth .cosmosfarm-members-form input[type="password"],
body.page-au-auth .cosmosfarm-members-form input[type="tel"] {
	width: 100% !important;
	height: 50px !important;
	background: #F4F4F5 !important;
	border: 1px solid #F4F4F5 !important;
	border-radius: 8px !important;
	padding: 0 16px !important;
	font-size: 15px !important;
	font-family: inherit;
	color: #221C15 !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, background 0.15s ease;
}
body.page-au-auth .cosmosfarm-members-form input[type="text"]:focus,
body.page-au-auth .cosmosfarm-members-form input[type="email"]:focus,
body.page-au-auth .cosmosfarm-members-form input[type="password"]:focus,
body.page-au-auth .cosmosfarm-members-form input[type="tel"]:focus {
	background: #FFFFFF !important;
	border-color: #FA623B !important;
}
body.page-au-auth .cosmosfarm-members-form input::placeholder { color: #A6A6AB; }

body.page-au-auth .cosmosfarm-members-form .form-group,
body.page-au-auth .cosmosfarm-members-form .div_text {
	margin: 0 0 12px !important;
}
body.page-au-auth .cosmosfarm-members-form .div_text label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #7D7466;
	margin: 0 2px 6px;
}

/* ── 자동로그인/비번찾기 줄 ── */
body.page-au-auth .form-actions {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	margin: 4px 2px 18px !important;
	font-size: 13.5px;
	color: #7D7466;
}
body.page-au-auth .form-actions a { color: #7D7466; text-decoration: none; }
body.page-au-auth .form-actions a:hover { color: #221C15; text-decoration: underline; text-underline-offset: 3px; }
body.page-au-auth .remember-me { display: flex; align-items: center; gap: 7px; cursor: pointer; }
body.page-au-auth .cosmosfarm-members-form input[type="checkbox"] {
	accent-color: #FA623B;
	width: 16px;
	height: 16px;
}

/* ── 제출 버튼 ── */
body.page-au-auth .cosmosfarm-members-form .btn-submit,
body.page-au-auth .cosmosfarm-members-form input[type="submit"],
body.page-au-auth .cosmosfarm-members-form .buttons {
	display: block !important;
	width: 100% !important;
	height: 52px !important;
	background: #221C15 !important;
	color: #FFFDF8 !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	letter-spacing: -0.01em;
	border: none !important;
	border-radius: 8px !important;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease;
	margin: 6px 0 0 !important;
}
body.page-au-auth .cosmosfarm-members-form .btn-submit:hover,
body.page-au-auth .cosmosfarm-members-form input[type="submit"]:hover,
body.page-au-auth .cosmosfarm-members-form .buttons:hover {
	background: #000000 !important;
}
body.page-au-auth .button_div { margin: 6px 0 0 !important; }

/* ── 하단 링크 ── */
body.page-au-auth .login-footer, .au-card-foot {
	text-align: center;
	font-size: 14px;
	color: #7D7466;
	margin-top: 24px !important;
	border: none !important;
	padding: 0 !important;
}
body.page-au-auth .login-footer a, .au-card-foot a {
	color: #C2431C !important;
	font-weight: 700;
	margin-left: 6px;
	text-decoration: none;
}
body.page-au-auth .login-footer a:hover, .au-card-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 회원가입: 약관 동의 접기 ── */
body.page-au-auth .div_checkbox.agree {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	border: 1px solid #EFE9E0;
	border-radius: 10px;
	padding: 13px 16px !important;
	margin: 0 0 10px !important;
	font-size: 14px;
	color: #221C15;
}
body.page-au-auth .div_checkbox.agree .policy_content {
	display: none;
	order: 10;
	flex-basis: 100%;
	max-height: 220px;
	overflow-y: auto;
	background: #F9F8F6;
	border: 1px solid #EFE9E0;
	border-radius: 8px;
	padding: 14px 16px;
	margin-top: 10px;
	font-size: 12.5px;
	line-height: 1.7;
	color: #7D7466;
}
body.page-au-auth .div_checkbox.agree.au-open .policy_content { display: block; }
body.page-au-auth .cosmosfarm-members-form .au-policy-toggle {
	display: inline !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	line-height: 1.6 !important;
	margin: 0 0 0 auto !important;
	padding: 2px 4px !important;
	flex-shrink: 0;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #A69C8D !important;
	cursor: pointer;
	text-decoration: none !important;
	transform: none !important;
}
body.page-au-auth .cosmosfarm-members-form .au-policy-toggle:hover,
body.page-au-auth .cosmosfarm-members-form .au-policy-toggle:focus {
	background: none !important;
	background-color: transparent !important;
	color: #221C15 !important;
	box-shadow: none !important;
	transform: none !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* 필수 표시 안내 */
body.page-au-auth .req-text {
	font-size: 12px;
	color: #A69C8D;
	margin-top: 12px;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.au-bubble { animation: none; }
	.au-sns-btn, body.page-au-auth .cosmosfarm-members-form input { transition: none; }
}
@media (max-width: 480px) {
	body.page-au-auth .cosmosfarm-members-form {
		margin: 16px auto 48px;
		padding: 32px 22px 28px;
	}
}
