/**
 * Login and Register Manager - Default Styles
 * Shadcn + Glassmorphism Design
 *
 * @package Growth_Box\Login_Register_Manager
 */

/* Form Wrapper - No background, minimal container */
.lrm-form-wrapper {
	max-width: 400px;
	margin: 0 auto;
	padding: 0;
}

/* Form */
.lrm-form {
	width: 100%;
}

/* Form Fields */
.lrm-form__field {
	margin-bottom: 1.25rem;
}

.lrm-form__label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: 14px;
	color: #09090b;
	letter-spacing: -0.01em;
}

.lrm-form__required {
	color: #ef4444;
	margin-left: 2px;
}

/* Glassmorphism Input Fields */
.lrm-form__input {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 14px;
	line-height: 1.5;
	color: #09090b;
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lrm-form__input::placeholder {
	color: #71717a;
}

.lrm-form__input:focus {
	outline: none;
	border-color: #18181b;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1),
	            0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.lrm-form__input--error {
	border-color: #ef4444;
	background: rgba(254, 226, 226, 0.4);
}

.lrm-form__input--error:focus {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1),
	            0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.lrm-form__help {
	display: block;
	margin-top: 0.375rem;
	font-size: 12px;
	color: #71717a;
	line-height: 1.4;
}

.lrm-form__error {
	display: block;
	margin-top: 0.375rem;
	font-size: 12px;
	color: #ef4444;
	line-height: 1.4;
	font-weight: 500;
}

/* Checkbox and Radio - Minimal Shadcn Style */
.lrm-form__field--checkbox label,
.lrm-form__checkbox-label,
.lrm-form__radio-label {
	display: flex;
	align-items: center;
	font-weight: normal;
	cursor: pointer;
	font-size: 14px;
	color: #09090b;
}

.lrm-form__field--checkbox input[type="checkbox"],
.lrm-form__checkbox-label input[type="checkbox"],
.lrm-form__radio-label input[type="radio"] {
	width: 16px;
	height: 16px;
	margin-right: 0.5rem;
	cursor: pointer;
	accent-color: #18181b;
}

.lrm-form__checkbox-group,
.lrm-form__radio-group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Pill-style Buttons */
.lrm-form__actions {
	margin-top: 1.5rem;
}

.lrm-form__button {
	width: 100%;
	padding: 0.75rem 1.5rem;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	cursor: pointer;
	border: none;
	border-radius: 9999px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	letter-spacing: -0.01em;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lrm-form__button--primary {
	background-color: #18181b;
	color: #ffffff;
}

.lrm-form__button--primary:hover:not(:disabled) {
	background-color: #27272a;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
	            0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.lrm-form__button--primary:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lrm-form__button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.lrm-form__button-loader {
	display: none;
}

/* Messages - Clean and minimal */
.lrm-form__messages {
	margin-bottom: 1.25rem;
}

.lrm-form__message {
	padding: 0.875rem 1rem;
	margin-bottom: 1rem;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 500;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.lrm-form__message--error {
	background: rgba(254, 226, 226, 0.6);
	border: 1px solid rgba(239, 68, 68, 0.2);
	color: #dc2626;
}

.lrm-form__message--success {
	background: rgba(220, 252, 231, 0.6);
	border: 1px solid rgba(34, 197, 94, 0.2);
	color: #16a34a;
}

.lrm-form__message--info {
	background: rgba(224, 242, 254, 0.6);
	border: 1px solid rgba(59, 130, 246, 0.2);
	color: #2563eb;
}

/* Form Footer */
.lrm-form__footer {
	margin-top: 1.25rem;
	text-align: center;
}

.lrm-form__link {
	color: #18181b;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.lrm-form__link:hover {
	color: #3f3f46;
	text-decoration: underline;
}

/* Social Buttons - Glassmorphism + Pill Style */
.lrm-social-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.lrm-social-button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	border-radius: 9999px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	letter-spacing: -0.01em;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.lrm-social-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
	            0 2px 4px -1px rgba(0, 0, 0, 0.06);
	color: #ffffff;
	text-decoration: none;
}

.lrm-social-button:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lrm-social-button__icon {
	margin-right: 0.5rem;
}

.lrm-social-button--google {
	background-color: #4285f4;
}

.lrm-social-button--google:hover {
	background-color: #357ae8;
}

.lrm-social-button--soundcloud {
	background-color: #ff5500;
}

.lrm-social-button--soundcloud:hover {
	background-color: #ff6a1a;
}

.lrm-social-button--spotify {
	background-color: #1db954;
}

.lrm-social-button--spotify:hover {
	background-color: #1ed760;
}

/* Form Divider - Minimal */
.lrm-form__divider {
	position: relative;
	margin: 1.5rem 0;
	text-align: center;
}

.lrm-form__divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.lrm-form__divider span {
	position: relative;
	display: inline-block;
	padding: 0 1rem;
	background-color: transparent;
	color: #71717a;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* WooCommerce Integration */
.lrm-woocommerce-social-login,
.lrm-woocommerce-checkout-social {
	margin-bottom: 2rem;
}

.lrm-woocommerce-checkout-social h3 {
	margin-bottom: 0.75rem;
	font-size: 18px;
	font-weight: 600;
	color: #09090b;
	letter-spacing: -0.01em;
}

.lrm-woocommerce-checkout-social p {
	margin-bottom: 1rem;
	color: #71717a;
	font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.lrm-form-wrapper {
		padding: 0 1rem;
		max-width: 100%;
	}

	.lrm-form__button {
		font-size: 14px;
		padding: 0.75rem 1.25rem;
	}

	.lrm-social-button {
		font-size: 14px;
		padding: 0.75rem 1.25rem;
	}
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
	.lrm-form__label {
		color: #fafafa;
	}

	.lrm-form__input {
		background: rgba(0, 0, 0, 0.3);
		border-color: rgba(255, 255, 255, 0.1);
		color: #fafafa;
	}

	.lrm-form__input::placeholder {
		color: #a1a1aa;
	}

	.lrm-form__input:focus {
		border-color: #fafafa;
		background: rgba(0, 0, 0, 0.4);
		box-shadow: 0 0 0 3px rgba(250, 250, 250, 0.1),
		            0 4px 6px -1px rgba(0, 0, 0, 0.3);
	}

	.lrm-form__button--primary {
		background-color: #fafafa;
		color: #09090b;
	}

	.lrm-form__button--primary:hover:not(:disabled) {
		background-color: #e4e4e7;
	}

	.lrm-form__link {
		color: #fafafa;
	}

	.lrm-form__link:hover {
		color: #e4e4e7;
	}

	.lrm-form__divider span {
		color: #a1a1aa;
	}
}

/* Accessibility */
.lrm-form__input:focus-visible,
.lrm-form__button:focus-visible,
.lrm-social-button:focus-visible {
	outline: 2px solid #18181b;
	outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
	.lrm-form__input:focus-visible,
	.lrm-form__button:focus-visible,
	.lrm-social-button:focus-visible {
		outline-color: #fafafa;
	}
}

/* Loading Animation */
@keyframes lrm-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.lrm-form__button--loading .lrm-form__button-loader::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: lrm-spin 0.6s linear infinite;
}

/* Link accounts styles */
.lrm-link-accounts {
	max-width: 500px;
	margin: 2rem 0;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.lrm-link-accounts__title {
	margin: 0 0 1.5rem 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #09090b;
	letter-spacing: -0.02em;
}

.lrm-link-accounts__provider {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	margin-bottom: 1rem;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 12px;
	transition: all 0.2s ease;
}

.lrm-link-accounts__provider:last-child {
	margin-bottom: 0;
}

.lrm-link-accounts__provider:hover {
	background: rgba(255, 255, 255, 0.8);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.lrm-link-accounts__provider-info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.lrm-link-accounts__provider-name {
	font-weight: 600;
	color: #09090b;
	font-size: 14px;
	letter-spacing: -0.01em;
}

.lrm-link-accounts__status {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.lrm-link-accounts__status--connected {
	color: #22c55e;
}

.lrm-link-accounts__status--disconnected {
	color: #6b7280;
}

.lrm-link-accounts__button {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: -0.01em;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	border: none;
	outline: none;
}

.lrm-link-accounts__button--link {
	background: #18181b;
	color: #ffffff;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lrm-link-accounts__button--link:hover {
	background: #27272a;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: #ffffff;
}

.lrm-link-accounts__button--unlink {
	background: rgba(239, 68, 68, 0.1);
	color: #dc2626;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

.lrm-link-accounts__button--unlink:hover {
	background: #dc2626;
	color: #ffffff;
	border-color: #dc2626;
	transform: translateY(-1px);
	text-decoration: none;
}

.lrm-link-accounts__error {
	color: #dc2626;
	font-size: 12px;
	font-style: italic;
	letter-spacing: -0.01em;
}

@media (max-width: 768px) {
	.lrm-link-accounts {
		margin: 1rem 0;
		padding: 1rem;
	}
	
	.lrm-link-accounts__provider {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		padding: 0.75rem;
	}
	
	.lrm-link-accounts__button {
		align-self: stretch;
		justify-content: center;
	}
}

/* Smooth transitions for all interactive elements */
* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
