/*
 * FIBE の入口の画面（/login・/auth/forgot・/auth/set-password・/auth/mfa・/maintenance）。
 * 2026-10-14 作り直し（中村さんの判断）：ミニマル・白地・ボタンは緑。カード・影・太字・ピル形のボタンは使わない。
 * 色は文字 #1a1a1a、説明の文 #555、線 #cfcfcf（入力欄）・#e5e5e5（区切り）、差し色 #38baae の1色だけ。
 * 会員もトレーナー・管理者も同じ見た目。member.css の土台（body.ftc-my）の上に重ねる。
 */

.ftc-auth {
	width: 100%;
	max-width: 400px;
	min-height: 100vh;
	margin: 0 auto;
	padding: 0 24px calc(72px + env(safe-area-inset-bottom, 0px)) 24px;
	display: flex;
	flex-direction: column;
	color: #1a1a1a;
}

/* ロゴ（上・小さめ） */
.ftc-auth__head {
	display: flex;
	justify-content: center;
	padding: 56px 0 48px 0;
}

.ftc-auth__logo {
	display: block;
	height: 20px;
	width: auto;
}

.ftc-auth__main {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* 本文のまとまり（カードではない。地は白のまま） */
.ftc-auth__card {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ftc-auth__title {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
	margin: 0;
}

.ftc-auth__lead,
.ftc-auth__small {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.9;
	color: #555555;
	margin: 0;
}

.ftc-auth__small {
	font-size: 13px;
}

.ftc-auth strong {
	font-weight: 500;
}

/* 誤りの文（色は足さない。差し色の細い線で目立たせる） */
.ftc-auth__alert {
	font-size: 14px;
	line-height: 1.8;
	color: #1a1a1a;
	border-left: 2px solid #38baae;
	padding: 2px 0 2px 12px;
	margin: 0;
}

/* 送りました（線だけの小さい印） */
.ftc-auth__done {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ftc-auth__done-mark {
	width: 28px;
	height: 28px;
	border: 1px solid #38baae;
	border-radius: 50%;
	color: #38baae;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
}

.ftc-auth__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.ftc-auth__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ラベルは画面からは消し、読み上げには残す（入力欄の中の薄い字で示す） */
.ftc-auth__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ftc-auth__input {
	width: 100%;
	height: 48px;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	color: #1a1a1a;
	background: #ffffff;
	-webkit-appearance: none;
	appearance: none;
}

.ftc-auth__input::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

.ftc-auth__input:focus {
	outline: none;
	border-color: #38baae;
}

.ftc-auth__input--code {
	font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
	font-size: 20px;
	letter-spacing: 0.4em;
	text-align: center;
}

/* ボタン（緑の1つ。member.css の .ftc-my-primary の形を打ち消す） */
.ftc-auth .ftc-my-primary {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 4px;
	background: #38baae;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ftc-my .ftc-auth a.ftc-my-primary,
.ftc-my .ftc-auth a.ftc-my-primary:hover {
	color: #ffffff;
}

/* 線だけのボタン（白地・緑の線・緑の文字。主役のボタンは1つにする） */
.ftc-auth__secondary {
	width: 100%;
	min-height: 48px;
	border: 1px solid #38baae;
	border-radius: 4px;
	background: #ffffff;
	color: #38baae;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}

.ftc-my a.ftc-auth__secondary,
.ftc-my a.ftc-auth__secondary:hover {
	color: #38baae;
}

/* リンク（小さめ・緑・細い下線。並べるときは左寄せで縦に） */
.ftc-auth__foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.ftc-my .ftc-auth__link,
.ftc-my .ftc-auth__link:hover,
.ftc-auth__link-button {
	color: #38baae;
	font-size: 14px;
	font-weight: 400;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ftc-auth__link-button {
	background: transparent;
	border: 0;
	padding: 0;
	font-family: inherit;
	cursor: pointer;
}

/* 区切りの細い線 */
.ftc-auth__rule {
	border: 0;
	border-top: 1px solid #e5e5e5;
	margin: 0;
}

/* 届かないときの案内（箱にしない。線で区切った文） */
.ftc-auth__help {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ftc-auth__help-title {
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}

.ftc-auth__help ul {
	margin: 0;
	padding-left: 1.2em;
	list-style: disc;
	font-size: 14px;
	line-height: 1.9;
	color: #555555;
}

/* 2段階認証の登録の手順 */
.ftc-auth__steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ftc-auth__step {
	counter-increment: step;
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 12px;
	align-items: start;
	font-size: 14px;
	line-height: 1.8;
}

/* 番号は線だけの小さい丸 */
.ftc-auth__step::before {
	content: counter(step);
	width: 24px;
	height: 24px;
	border: 1px solid #38baae;
	border-radius: 50%;
	color: #38baae;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.ftc-auth__step-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.ftc-auth__qr {
	display: block;
	width: 180px;
	height: 180px;
	margin: 4px 0;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 8px;
	background: #ffffff;
}

.ftc-auth__key {
	border-top: 1px solid #e5e5e5;
	padding: 12px 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ftc-auth__key-label {
	font-size: 12px;
	color: #555555;
}

.ftc-auth__key-value {
	font-family: 'DM Sans', ui-monospace, monospace;
	font-size: 15px;
	letter-spacing: 0.08em;
	word-break: break-all;
	color: #1a1a1a;
}

/* コピー（文字のボタン） */
.ftc-auth__copy {
	align-self: flex-start;
	background: transparent;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	color: #38baae;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ほかの方法（見分けが外れたとき） */
.ftc-auth__other {
	border-top: 1px solid #e5e5e5;
	padding-top: 12px;
}

.ftc-auth__other > summary {
	cursor: pointer;
	font-size: 14px;
	color: #38baae;
}

.ftc-auth__other[open] > summary {
	margin-bottom: 12px;
}

.ftc-auth__other-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 720px) {
	.ftc-auth__head {
		padding: 96px 0 56px 0;
	}
}
