.meme-sound-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.meme-sound-auth-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.meme-sound-auth-modal__panel {
	position: relative;
	z-index: 1;
	width: calc(100% - 32px);
	max-width: 440px;
	background: #ffffff;
	color: #1a1a1a;
	border-radius: 12px;
	padding: 0;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	animation: slideUp 0.3s ease-out;
	border: 1px solid #e5e7eb;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.meme-sound-auth-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	border: 1px solid #e5e7eb;
	background: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	z-index: 10;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.meme-sound-auth-modal__close:hover {
	color: #111827;
	background: #f9fafb;
	border-color: #d1d5db;
}

/* TAB NAVIGATION */
.meme-sound-auth-tabs__nav {
	display: flex;
	border-bottom: 1px solid #f3f4f6;
	background: #fff;
	padding: 0;
}

.meme-sound-auth-tabs__btn {
	flex: 1;
	padding: 16px;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	border-bottom: 2px solid transparent;
	text-transform: capitalize;
}

.meme-sound-auth-tabs__btn:hover {
	color: #374151;
}

.meme-sound-auth-tabs__btn--active {
	color: #2563eb;
	border-bottom-color: #2563eb;
	font-weight: 600;
}

/* TAB CONTENT */
.meme-sound-auth-tabs__content {
	padding: 24px 32px;
	display: none;
}

.meme-sound-auth-tabs__content--active {
	display: block;
}

.meme-sound-auth-modal h2 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	text-align: center;
}

.meme-sound-auth-modal__hint {
	margin: 0 0 16px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.4;
	text-align: center;
}

.meme-sound-auth-modal__field {
	margin-bottom: 12px;
}

.meme-sound-auth-modal__field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 4px;
	color: #374151;
}

.meme-sound-auth-modal__field input[type="text"],
.meme-sound-auth-modal__field input[type="email"],
.meme-sound-auth-modal__field input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.meme-sound-auth-modal__field input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.meme-sound-auth-modal__field input.is-invalid {
	border-color: #ef4444 !important;
	background-color: #fef2f2 !important;
}

.meme-sound-auth-modal__field input.is-invalid:focus {
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.meme-sound-auth-error-msg {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fee2e2;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 20px;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	animation: shake 0.4s ease-in-out;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.meme-sound-auth-modal__remember {
	margin: -4px 0 16px;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #4b5563;
}

.meme-sound-auth-modal__remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #2563eb;
	cursor: pointer;
}

.meme-sound-auth-modal__switch {
	margin: 16px 0 0;
	text-align: center;
	font-size: 13px;
	color: #6b7280;
}

.meme-sound-auth-modal__switch a {
	color: #2563eb;
	text-decoration: none;
	font-weight: 600;
}

.meme-sound-auth-modal__switch a:hover {
	text-decoration: underline;
}

.meme-sound-auth-modal__submit {
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 6px;
	background: #2563eb;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.meme-sound-auth-modal__submit:hover {
	background: #1d4ed8;
}

.meme-sound-auth-modal__submit:disabled {
	background: #93c5fd;
	cursor: not-allowed;
}

.meme-sound-auth-modal__or {
	text-align: center;
	margin: 16px 0;
	font-size: 12px;
	color: #9ca3af;
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.meme-sound-auth-modal__or::before,
.meme-sound-auth-modal__or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #f3f4f6;
}

.meme-sound-auth-modal__google {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 8px;
}

.meme-sound-google-btn-custom {
	width: 100%;
	max-width: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
}

.meme-sound-google-btn-custom:hover {
	background: #f9fafb;
	border-color: #c1c7d0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	color: #374151;
}

.meme-sound-google-btn-custom:active {
	background: #f3f4f6;
	transform: scale(0.98);
}

.meme-sound-google-btn-custom.is-loading {
	opacity: 0.7;
	filter: grayscale(0.5);
	cursor: wait;
	pointer-events: none;
}

.meme-sound-google-btn-custom img {
	width: 18px;
	height: 18px;
}

#meme-sound-resend-otp-btn.disabled {
	color: #9ca3af !important;
	cursor: not-allowed;
	pointer-events: none;
}

body.meme-sound-modal-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.meme-sound-auth-modal {
		padding: 16px;
	}
	.meme-sound-auth-tabs__content {
		padding: 24px 20px;
	}
}

