/* SparkAI Main - Login Modal, Login Page, Share Modal */
/* Login Modal */
.modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}
.modal.open {
	opacity: 1;
	visibility: visible;
}
.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(1px);
}
.modal-content {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 24px;
	padding: 22px;
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: 14px;
	transform: translateY(20px);
	transition: transform 0.2s;
}
.modal.open .modal-content {
	transform: translateY(-20px);
}
.close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: #71717a;
	font-size: 24px;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease, transform 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.close-btn:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	transform: rotate(90deg);
}
.modal-footer {
	margin-top: 16px;
	text-align: center;
}
.modal-footer p {
	font-size: 12px;
	color: #52525b;
	margin: 0;
}
.modal-footer a {
	color: #71717a;
	text-decoration: underline;
}
.btn-google {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 10px 24px;
	background: var(--color-bg-elevated);
	color: #e4e4e7;
	text-decoration: none;
	border: 1px solid var(--color-bg-subtle);
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	overflow: hidden;
}
.btn-google:hover {
	background: #818cf8;
	color: #fff;
	border-color: #818cf8;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(129, 140, 248, 0.3);
}
.btn-google.loading {
	opacity: 0.7;
	cursor: default;
}
.btn-google.loading:hover {
	background: var(--color-bg-elevated);
	color: #e4e4e7;
	border-color: var(--color-bg-subtle);
	transform: none;
	box-shadow: none;
}
.btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #e4e4e7;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	margin-right: 10px;
	vertical-align: middle;
}
.modal-footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--color-bg-subtle);
}
.modal-footer p {
	color: #52525b;
	font-size: clamp(10px, 2vw, 12px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.modal-footer a {
	color: #71717a;
	text-decoration: none;
}
.modal-footer a:hover {
	color: #a1a1aa;
}

/* Login Page */
.login-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}
.login-icon {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	object-fit: contain;
}
.login-header-text h1 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 4px 0;
	color: #fafafa;
}
.login-header-text p {
	font-size: 13px;
	color: #71717a;
	margin: 0;
}
.google-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
}
.login-agreement a {
	color: #71717a;
	text-decoration: underline;
	text-decoration-color: rgba(113, 113, 122, 0.4);
	text-underline-offset: 2px;
	transition: color 0.15s;
}
.login-agreement a:hover {
	color: #a1a1aa;
}

/* Share Modal styles → /components/social/styles.css */
.share-modal-container .modal-app-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: contain;
}
