/* Auth Login Block - Frontend Styles */

.ut-auth-unified-block {
	/* margin/paddingはWordPress block supportsで制御 */
	/* モダンカードデザイン */
	background-color: var(--ut-auth-bg, #ffffff);
	border: 2px solid var(--ut-auth-border, #e2e8f0);
	border-radius: var(--ut-auth-radius, 8px);
	/* box-shadowはインラインスタイルで制御 */
	overflow: hidden; /* 角丸を適用 */
}

.ut-auth-login-block {
	/* margin/paddingはWordPress block supportsで制御 */
}

/* タブ */
.ut-auth-tabs {
	display: flex;
	border-bottom: 2px solid var(--ut-auth-border, #e2e8f0);
	margin-bottom: 0;
	background-color: #f8fafc; /* タブエリアの背景 */
}

.ut-auth-tab {
	flex: 1;
	padding: 15px 20px; /* パディング増量 */
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 16px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	position: relative;
}

.ut-auth-tab:hover {
	color: var(--ut-auth-accent, #3498db);
	background: rgba(52, 152, 219, 0.05);
}

.ut-auth-tab.tab-active {
	color: var(--ut-auth-accent, #3498db);
	border-bottom-color: var(--ut-auth-accent, #3498db);
	background: var(--ut-auth-bg, #ffffff); /* アクティブタブは白 */
}

/* フォームコンテナ */
.ut-auth-form-container {
	display: none;
	background: transparent; /* 親の背景を使用 */
	border: none; /* 親のボーダーを使用 */
	border-radius: 0;
	padding: 30px;
	box-shadow: none; /* 親のシャドウを使用 */
}

.ut-auth-form-container.active {
	display: block;
	animation: ut-auth-fade-in 0.3s ease;
}

@keyframes ut-auth-fade-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ログインフォーム */
.ut-auth-login-form {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.ut-auth-register-form {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

/* メッセージ表示エリア */
.ut-auth-messages {
	margin-bottom: 20px;
}

.ut-auth-message {
	padding: 12px 16px;
	border-radius: var(--ut-auth-radius, 8px);
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.ut-auth-message-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.ut-auth-message-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* 入力フィールド */
.ut-auth-field {
	margin-bottom: 20px;
}

.ut-auth-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 8px;
}

.ut-auth-field input[type="text"],
.ut-auth-field input[type="email"],
.ut-auth-field input[type="password"] {
	width: 100%;
	padding: 14px 16px; /* 高さ調整 */
	border: 2px solid var(--ut-auth-border, #e2e8f0);
	border-radius: var(--ut-auth-radius, 8px);
	font-size: 16px; /* フォントサイズ調整 */
	transition: all 0.3s ease;
	background: #f8fafc; /* 薄いグレー背景 */
	box-sizing: border-box;
}

/* パスワード入力ラッパー（表示/非表示ボタン用） */
.ut-auth-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.ut-auth-input-wrapper input {
	padding-right: 45px;
}

.ut-auth-password-toggle {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #64748b;
	transition: color 0.2s;
}

.ut-auth-password-toggle:hover {
	color: var(--ut-auth-accent, #3498db);
}

.ut-auth-password-toggle:focus {
	outline: 2px solid rgba(52, 152, 219, 0.5);
	outline-offset: 2px;
	border-radius: 4px;
}

.ut-auth-field input[type="text"]:focus,
.ut-auth-field input[type="email"]:focus,
.ut-auth-field input[type="password"]:focus {
	outline: none;
	border-color: var(--ut-auth-accent, #3498db);
	background: #ffffff; /* フォーカス時は白背景 */
	box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.ut-auth-field input[type="text"]:disabled,
.ut-auth-field input[type="email"]:disabled,
.ut-auth-field input[type="password"]:disabled {
	background: #f1f5f9;
	cursor: not-allowed;
	opacity: 0.7;
}

/* ラベル位置: 左 */
.ut-auth-field label[style*="inline-block"] {
	display: inline-block;
	width: 120px;
	margin-right: 10px;
	margin-bottom: 0;
	vertical-align: middle;
}

.ut-auth-field input[style*="inline-block"] {
	display: inline-block;
	width: calc(100% - 140px);
	vertical-align: middle;
}

/* エラーメッセージ（フィールド下） */
.ut-auth-field-error {
	color: #dc3545;
	font-size: 13px;
	margin-top: 6px;
	display: none;
	font-weight: 500;
}

.ut-auth-field-error.show {
	display: block;
	animation: ut-auth-shake 0.4s ease;
}

@keyframes ut-auth-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}

/* ログイン状態を保持 */
.ut-auth-field-remember {
	margin-bottom: 20px;
}

.ut-auth-field-remember label {
	font-weight: normal;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	user-select: none;
}

.ut-auth-field-remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	cursor: pointer;
	accent-color: var(--ut-auth-accent, #3498db);
}

/* パスワード再設定リンク */
.ut-auth-field-password-reset {
	margin-bottom: 20px;
	text-align: right;
}

.ut-auth-password-reset-link {
	color: var(--ut-auth-accent, #3498db);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
	font-weight: 500;
}

.ut-auth-password-reset-link:hover {
	color: #2980b9;
	text-decoration: underline;
}

/* パスワード再設定フォーム */
.ut-auth-password-reset-form {
	margin-top: 20px;
}

.ut-auth-password-reset-form h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 18px;
	color: #1e293b;
}

.ut-auth-password-reset-form p {
	margin-bottom: 20px;
	color: #64748b;
	font-size: 14px;
}

.ut-auth-password-reset-submit-btn,
.ut-auth-password-reset-cancel-btn {
	padding: 12px 24px;
	border-radius: var(--ut-auth-radius, 8px);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-right: 10px;
}

.ut-auth-password-reset-submit-btn {
	background: var(--ut-auth-accent, #3498db);
	color: #ffffff;
	border: none;
}

.ut-auth-password-reset-submit-btn:hover {
	background: #2980b9;
	transform: translateY(-1px);
}

.ut-auth-password-reset-cancel-btn {
	background: transparent;
	color: #64748b;
	border: 1px solid var(--ut-auth-border, #e2e8f0);
}

.ut-auth-password-reset-cancel-btn:hover {
	background: #f8f9fa;
}

/* 切り替えリンク */
.ut-auth-switch-link {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px dashed var(--ut-auth-border, #e2e8f0);
	text-align: center;
	font-size: 14px;
	color: #64748b;
}

.ut-auth-switch-link a {
	color: var(--ut-auth-accent, #3498db);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
	margin-left: 5px;
}

.ut-auth-switch-link a:hover {
	color: #2980b9;
	text-decoration: underline;
}

/* パスワード強度インジケーター */
.ut-auth-password-strength {
	margin-top: 8px;
	height: 6px; /* 少し太く */
	background: #e2e8f0;
	border-radius: 3px;
	width: 100%;
	position: relative;
	overflow: hidden;
}

.ut-auth-password-strength::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	transition: all 0.3s ease;
	border-radius: 3px;
}

.ut-auth-password-strength.weak::after {
	width: 33%;
	background: #dc3545;
}

.ut-auth-password-strength.medium::after {
	width: 66%;
	background: #ffc107;
}

.ut-auth-password-strength.strong::after {
	width: 100%;
	background: #28a745;
}

/* 利用規約 */
.ut-auth-field-terms {
	margin-bottom: 20px;
	padding: 15px;
	background: #f8fafc;
	border-radius: var(--ut-auth-radius, 8px);
	border: 1px solid var(--ut-auth-border, #e2e8f0);
}

.ut-auth-field-terms label {
	font-weight: normal;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	user-select: none;
	margin-bottom: 0;
}

.ut-auth-field-terms input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 10px;
	margin-top: 2px;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: var(--ut-auth-accent, #3498db);
}

.ut-auth-field-terms a {
	color: var(--ut-auth-accent, #3498db);
	text-decoration: underline;
}

.ut-auth-field-terms a:hover {
	text-decoration: none;
}

/* 利用規約モーダル */
.ut-auth-terms-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ut-auth-terms-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.ut-auth-terms-modal-content {
	position: relative;
	background: #ffffff;
	border-radius: var(--ut-auth-radius, 8px);
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.ut-auth-terms-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid var(--ut-auth-border, #e2e8f0);
}

.ut-auth-terms-modal-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1e293b;
}

.ut-auth-terms-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #64748b;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: color 0.2s;
}

.ut-auth-terms-modal-close:hover {
	color: #1e293b;
}

.ut-auth-terms-modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.ut-auth-terms-modal-body p {
	margin-bottom: 16px;
	line-height: 1.6;
}

/* 送信ボタン */
.ut-auth-submit-btn {
	width: 100%;
	padding: 14px 24px;
	background: var(--ut-auth-accent, #3498db);
	color: #ffffff;
	border: none;
	border-radius: var(--ut-auth-radius, 8px);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.ut-auth-submit-btn:hover {
	background: #2980b9;
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

.ut-auth-submit-btn:active {
	transform: translateY(0);
}

.ut-auth-submit-btn:disabled {
	background: #95a5a6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	opacity: 0.7;
}

/* ログイン済み状態 */
.ut-auth-logged-in {
	background: var(--ut-auth-bg, #ffffff);
	border: 2px solid var(--ut-auth-border, #e2e8f0);
	border-radius: var(--ut-auth-radius, 8px);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	/* box-shadowはインラインスタイルで制御 */
}

.ut-auth-user-info {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
}

.ut-auth-avatar {
	flex-shrink: 0;
	position: relative;
}

.ut-auth-avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 3px solid var(--ut-auth-border, #e2e8f0);
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.ut-auth-avatar:hover img {
	transform: scale(1.05);
}

.ut-auth-user-details {
	flex: 1;
	min-width: 0; /* テキストのオーバーフローを防ぐ */
}

.ut-auth-user-name {
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 4px;
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.ut-auth-user-email {
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ログアウトボタン */
.ut-auth-logout-btn {
	width: 100%;
	padding: 12px 24px;
	background: var(--ut-auth-accent, #3498db);
	color: #ffffff;
	border: none;
	border-radius: var(--ut-auth-radius, 8px);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	position: relative;
	overflow: hidden;
}

.ut-auth-logout-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.ut-auth-logout-btn:hover {
	background: linear-gradient(135deg, #2980b9 0%, #1f6fa8 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.ut-auth-logout-btn:hover::before {
	width: 300px;
	height: 300px;
}

.ut-auth-logout-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.ut-auth-logout-btn:disabled {
	background: #95a5a6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	opacity: 0.7;
}

/* ローディング状態 */
.ut-auth-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.6;
}

.ut-auth-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px; /* サイズアップ */
	height: 30px;
	margin: -15px 0 0 -15px;
	border: 3px solid var(--ut-auth-accent, #3498db);
	border-top-color: transparent;
	border-radius: 50%;
	animation: ut-auth-spin 0.8s linear infinite;
	z-index: 10;
}

@keyframes ut-auth-spin {
	to { transform: rotate(360deg); }
}

/* ポップアップ起動ボタン */
.ut-auth-trigger-btn {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--ut-auth-accent, #3498db);
	color: #ffffff;
	border: none;
	border-radius: var(--ut-auth-radius, 8px);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
	text-decoration: none;
	text-align: center;
}

.ut-auth-trigger-btn:hover {
	background-color: #2980b9;
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
	color: #ffffff;
}

/* モーダルオーバーレイ（ポップアップ用） */
.ut-auth-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.ut-auth-modal-overlay.open {
	opacity: 1;
	visibility: visible;
}

/* モーダルラッパー */
.ut-auth-modal-wrapper {
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(20px);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ut-auth-modal-overlay.open .ut-auth-modal-wrapper {
	transform: translateY(0);
}

.ut-auth-modal-wrapper .ut-auth-unified-block {
	margin: 0;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* モーダル閉じるボタン */
.ut-auth-modal-close-btn {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	padding: 5px;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.ut-auth-modal-close-btn:hover {
	opacity: 1;
}

/* ============================================
   コンテナクエリの定義
   ============================================ */
.ut-auth-unified-block {
	container-type: inline-size;
	container-name: auth-block;
}

/* ============================================
   レスポンシブデザイン（ビューポートベース）
   ============================================ */

/* 小さいモバイル（max-width: 400px） */
@media only screen and (max-width: 400px) {
	.ut-auth-form-container {
		padding: 15px 12px;
	}
	
	.ut-auth-tabs {
		flex-direction: row;
	}
	
	.ut-auth-tab {
		font-size: 12px;
		padding: 10px 8px;
	}
	
	.ut-auth-user-info {
		flex-direction: column;
		text-align: center;
	}
	
	.ut-auth-avatar {
		margin-right: 0;
		margin-bottom: 12px;
	}
	
	.ut-auth-avatar img {
		width: 48px;
		height: 48px;
	}
	
	.ut-auth-user-name {
		font-size: 16px;
	}
	
	.ut-auth-user-email {
		font-size: 12px;
	}
	
	.ut-auth-field label[style*="inline-block"] {
		display: block;
		width: 100%;
		margin-right: 0;
		margin-bottom: 8px;
	}
	
	.ut-auth-field input[style*="inline-block"] {
		display: block;
		width: 100%;
	}
	
	.ut-auth-field input[type="text"],
	.ut-auth-field input[type="email"],
	.ut-auth-field input[type="password"] {
		padding: 12px 14px;
		font-size: 14px;
	}
	
	.ut-auth-submit-btn,
	.ut-auth-logout-btn {
		padding: 12px 20px;
		font-size: 14px;
	}
	
	.ut-auth-terms-modal-content {
		width: 95%;
		max-height: 90vh;
		padding: 15px;
	}
	
	.ut-auth-password-reset-submit-btn,
	.ut-auth-password-reset-cancel-btn {
		width: 100%;
		margin-right: 0;
		margin-bottom: 10px;
	}
	
	.ut-auth-modal-close-btn {
		top: 10px;
		right: 10px;
		color: #333;
		z-index: 1000;
	}
	
	.ut-auth-modal-wrapper {
		width: 95%;
	}
}

/* タブレット（min-width: 481px） */
@media only screen and (min-width: 481px) {
	.ut-auth-form-container {
		padding: 25px 20px;
	}
	
	.ut-auth-tab {
		font-size: 14px;
		padding: 12px 10px;
	}
}

/* デスクトップ（min-width: 769px） */
@media only screen and (min-width: 769px) {
	.ut-auth-form-container {
		padding: 30px;
	}
	
	.ut-auth-tab {
		font-size: 16px;
		padding: 15px 20px;
	}
}

/* 大きなデスクトップ（min-width: 1030px） */
@media only screen and (min-width: 1030px) {
	.ut-auth-form-container {
		padding: 35px 30px;
	}
	
	.ut-auth-tab {
		padding: 16px 24px;
	}
}

/* 超大画面（min-width: 1240px） */
@media only screen and (min-width: 1240px) {
	.ut-auth-unified-block {
		max-width: 600px;
		margin: 0 auto;
	}
}

/* HDサイズ（min-width: 1920px） */
@media only screen and (min-width: 1920px) {
	.ut-auth-form-container {
		padding: 40px 35px;
	}
	
	.ut-auth-tab {
		font-size: 18px;
		padding: 18px 28px;
	}
	
	.ut-auth-field input[type="text"],
	.ut-auth-field input[type="email"],
	.ut-auth-field input[type="password"] {
		padding: 16px 18px;
		font-size: 18px;
	}
	
	.ut-auth-submit-btn,
	.ut-auth-logout-btn {
		padding: 16px 28px;
		font-size: 18px;
	}
}

/* 4Kサイズ（min-width: 3840px） */
@media only screen and (min-width: 3840px) {
	.ut-auth-form-container {
		padding: 48px 40px;
	}
	
	.ut-auth-tab {
		font-size: 20px;
		padding: 20px 32px;
	}
	
	.ut-auth-field input[type="text"],
	.ut-auth-field input[type="email"],
	.ut-auth-field input[type="password"] {
		padding: 18px 20px;
		font-size: 20px;
	}
	
	.ut-auth-submit-btn,
	.ut-auth-logout-btn {
		padding: 18px 32px;
		font-size: 20px;
	}
}

/* ============================================
   コンテナクエリ（コラム内など、コンテナ幅が制限される場合）
   ============================================ */

/* レスポンシブ対応 - ログイン済み状態 */
@media (max-width: 600px) {
	.ut-auth-logged-in {
		gap: 16px;
	}
	
	.ut-auth-user-info {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
	
	.ut-auth-avatar {
		align-self: center;
	}
	
	.ut-auth-user-details {
		width: 100%;
		text-align: center;
	}
	
	.ut-auth-logout-btn {
		padding: 10px 20px;
		font-size: 14px;
	}
}

/* 小さいモバイル（コンテナ） */
@container auth-block (max-width: 400px) {
	.ut-auth-form-container {
		padding: 15px 12px;
	}
	
	.ut-auth-tab {
		font-size: 12px;
		padding: 10px 8px;
	}
	
	.ut-auth-field input[type="text"],
	.ut-auth-field input[type="email"],
	.ut-auth-field input[type="password"] {
		padding: 12px 14px;
		font-size: 14px;
	}
	
	.ut-auth-submit-btn,
	.ut-auth-logout-btn {
		padding: 12px 20px;
		font-size: 14px;
	}
}

/* タブレット（コンテナ） */
@container auth-block (min-width: 481px) {
	.ut-auth-form-container {
		padding: 25px 20px;
	}
	
	.ut-auth-tab {
		font-size: 14px;
		padding: 12px 10px;
	}
}

/* デスクトップ（コンテナ） */
@container auth-block (min-width: 769px) {
	.ut-auth-form-container {
		padding: 30px;
	}
	
	.ut-auth-tab {
		font-size: 16px;
		padding: 15px 20px;
	}
}

/* 大きなデスクトップ（コンテナ） */
@container auth-block (min-width: 1030px) {
	.ut-auth-form-container {
		padding: 35px 30px;
	}
}

/* ============================================
   JavaScriptフォールバック用クラス
   （コンテナクエリがサポートされていない場合）
   ============================================ */
.ut-auth-unified-block.ut-mobile-size .ut-auth-form-container {
	padding: 15px 12px;
}

.ut-auth-unified-block.ut-mobile-size .ut-auth-tab {
	font-size: 12px;
	padding: 10px 8px;
}

.ut-auth-unified-block.ut-tablet-size .ut-auth-form-container {
	padding: 25px 20px;
}

.ut-auth-unified-block.ut-desktop-size .ut-auth-form-container {
	padding: 30px;
}

/* アクセシビリティ */
.ut-auth-submit-btn:focus,
.ut-auth-logout-btn:focus,
.ut-auth-trigger-btn:focus {
	outline: 3px solid rgba(52, 152, 219, 0.5);
	outline-offset: 2px;
}

.ut-auth-field input:focus {
	outline: 2px solid rgba(52, 152, 219, 0.5);
	outline-offset: 2px;
}

/* アニメーション */
@media (prefers-reduced-motion: reduce) {
	.ut-auth-submit-btn,
	.ut-auth-logout-btn,
	.ut-auth-field input,
	.ut-auth-modal-overlay,
	.ut-auth-modal-wrapper {
		transition: none;
		animation: none;
	}
	
	.ut-auth-loading::after {
		animation: none;
	}
}

/* ============================================
   統一アニメーションクラス（ホバー）
   ============================================ */
.ut-block-hover-scale:hover {
	transform: scale(1.05);
	transition: transform var(--animation-duration, 300ms) var(--animation-easing, ease);
}

.ut-block-hover-lift:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transition: transform var(--animation-duration, 300ms) var(--animation-easing, ease), box-shadow var(--animation-duration, 300ms) var(--animation-easing, ease);
}

.ut-block-hover-glow:hover {
	box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
	transition: box-shadow var(--animation-duration, 300ms) var(--animation-easing, ease);
}

.ut-block-hover-fade:hover {
	opacity: 0.8;
	transition: opacity var(--animation-duration, 300ms) var(--animation-easing, ease);
}

/* ============================================
   統一アニメーションクラス（クリック）
   ============================================ */
.ut-block-click-scale:active {
	transform: scale(0.95);
	transition: transform var(--animation-duration, 100ms) var(--animation-easing, ease);
}

.ut-block-click-bounce:active {
	animation: bounce var(--animation-duration, 300ms) var(--animation-easing, ease);
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* ============================================
   統一アニメーションクラス（スクロール）
   ============================================ */
.ut-block-scroll-fade-in {
	opacity: 0;
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-fade-in.ut-scroll-visible {
	opacity: 1;
}

.ut-block-scroll-slide-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease), transform var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-slide-up.ut-scroll-visible {
	opacity: 1;
	transform: translateY(0);
}

.ut-block-scroll-slide-left {
	opacity: 0;
	transform: translateX(30px);
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease), transform var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-slide-left.ut-scroll-visible {
	opacity: 1;
	transform: translateX(0);
}

.ut-block-scroll-slide-right {
	opacity: 0;
	transform: translateX(-30px);
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease), transform var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-slide-right.ut-scroll-visible {
	opacity: 1;
	transform: translateX(0);
}

.ut-block-scroll-zoom-in {
	opacity: 0;
	transform: scale(0.8);
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease), transform var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-zoom-in.ut-scroll-visible {
	opacity: 1;
	transform: scale(1);
}