/**
 * FluentAuth Custom Styles - Tailwind UI Design
 */

/* Main Auth Wrapper */
.fct_auth_wrap,
.fluent_auth_wrapper {
	width: 100%;
	max-width: 28rem;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.fct_auth_wrap h4 {
	text-align: center;
}

.fls_login_wrapper,
.fls_registration_wrapper,
.fls_reset_pass_wrapper {
	margin: auto;
}

/* Form Container */
.fct_auth_wrap form,
.fluent_auth_wrapper form {
	background: white;
	border-radius: 0.5rem;
	padding: 2rem;
}

/* Form Title */
.fct_auth_wrap h3,
.fct_auth_wrap h2,
.fluent_auth_wrapper h3,
.fluent_auth_wrapper h2 {
	margin-top: 1.5rem;
	text-align: left;
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 800;
	color: #111827;
	margin-bottom: 0.5rem;
}

/* Form Description */
.fct_auth_wrap p,
.fluent_auth_wrapper p {
	margin-top: 0.5rem;
	text-align: left;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #6b7280;
}

/* Form Links */
.fct_auth_wrap a,
.fluent_auth_wrapper a {
	font-weight: 500;
	color: #0284c7;
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

.fct_auth_wrap a:hover,
.fluent_auth_wrapper a:hover {
	color: #0284c7;
}

/* Form Fields */
.fct_auth_wrap .fct_form_group,
.fluent_auth_wrapper .form-group,
.fluent_auth_wrapper .fct_form_group {
	margin-bottom: 1rem;
}

/* Labels */
.fct_auth_wrap label,
.fluent_auth_wrapper label {
	display: block;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.5rem;
}

/* Input Fields */
.fct_auth_wrap input[type="text"],
.fct_auth_wrap input[type="email"],
.fct_auth_wrap input[type="password"],
.fct_auth_wrap input[type="tel"],
.fluent_auth_wrapper input[type="text"],
.fluent_auth_wrapper input[type="email"],
.fluent_auth_wrapper input[type="password"],
.fluent_auth_wrapper input[type="tel"] {
	appearance: none;
	display: block;
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #111827;
	background-color: white;
	transition: all 0.15s ease-in-out;
}

.fct_auth_wrap input[type="text"]::placeholder,
.fct_auth_wrap input[type="email"]::placeholder,
.fct_auth_wrap input[type="password"]::placeholder,
.fluent_auth_wrapper input[type="text"]::placeholder,
.fluent_auth_wrapper input[type="email"]::placeholder,
.fluent_auth_wrapper input[type="password"]::placeholder {
	color: #9ca3af;
}

.fct_auth_wrap input[type="text"]:focus,
.fct_auth_wrap input[type="email"]:focus,
.fct_auth_wrap input[type="password"]:focus,
.fluent_auth_wrapper input[type="text"]:focus,
.fluent_auth_wrapper input[type="email"]:focus,
.fluent_auth_wrapper input[type="password"]:focus {
	outline: none;
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Checkboxes */
.fct_auth_wrap input[type="checkbox"],
.fluent_auth_wrapper input[type="checkbox"],
.fls_login_wrapper input[type="checkbox"],
.fls_registration_wrapper input[type="checkbox"],
.fls_reset_pass_wrapper input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	height: 1.125rem;
	width: 1.125rem;
	color: #0284c7;
	border-radius: 0.25rem;
	border: 2px solid #d1d5db;
	cursor: pointer;
	background-color: white;
	position: relative;
	transition: all 0.15s ease-in-out;
	flex-shrink: 0;
}

.fct_auth_wrap input[type="checkbox"]:hover,
.fluent_auth_wrapper input[type="checkbox"]:hover,
.fls_login_wrapper input[type="checkbox"]:hover,
.fls_registration_wrapper input[type="checkbox"]:hover,
.fls_reset_pass_wrapper input[type="checkbox"]:hover {
	border-color: #0284c7;
}

.fct_auth_wrap input[type="checkbox"]:checked,
.fluent_auth_wrapper input[type="checkbox"]:checked,
.fls_login_wrapper input[type="checkbox"]:checked,
.fls_registration_wrapper input[type="checkbox"]:checked,
.fls_reset_pass_wrapper input[type="checkbox"]:checked {
	background-color: #0284c7;
	border-color: #0284c7;
}

.fct_auth_wrap input[type="checkbox"]:checked::after,
.fluent_auth_wrapper input[type="checkbox"]:checked::after,
.fls_login_wrapper input[type="checkbox"]:checked::after,
.fls_registration_wrapper input[type="checkbox"]:checked::after,
.fls_reset_pass_wrapper input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: 0.0625rem;
	width: 0.375rem;
	height: 0.625rem;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.fct_auth_wrap input[type="checkbox"]:focus,
.fluent_auth_wrapper input[type="checkbox"]:focus,
.fls_login_wrapper input[type="checkbox"]:focus,
.fls_registration_wrapper input[type="checkbox"]:focus,
.fls_reset_pass_wrapper input[type="checkbox"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.fls_login_wrapper form#loginform {
	padding-bottom: 0;
}

/* Remember Me / Forgot Password Row */
.fct_auth_wrap .fct_remember_row,
.fluent_auth_wrapper .remember-row,
.fct_auth_wrap .login-remember,
.fluent_auth_wrapper .login-remember {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1rem;
	margin-bottom: 1.5rem;
}

.fct_auth_wrap .fct_remember_row label,
.fluent_auth_wrapper .remember-row label,
.fct_auth_wrap .login-remember label,
.fluent_auth_wrapper .login-remember label,
.fls_login_wrapper .login-remember label,
.fls_registration_wrapper .login-remember label,
.fls_reset_pass_wrapper .login-remember label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #111827;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	vertical-align: middle;
}

.fct_auth_wrap .fct_remember_row input[type="checkbox"],
.fluent_auth_wrapper .remember-row input[type="checkbox"],
.fct_auth_wrap .login-remember input[type="checkbox"],
.fluent_auth_wrapper .login-remember input[type="checkbox"],
.fls_login_wrapper .login-remember input[type="checkbox"],
.fls_registration_wrapper .login-remember input[type="checkbox"],
.fls_reset_pass_wrapper .login-remember input[type="checkbox"] {
	margin-right: 6px;
	cursor: pointer;
	vertical-align: middle;
}

.fct_auth_wrap .fct_remember_row a,
.fluent_auth_wrapper .remember-row a {
	font-size: 0.875rem;
}

/* Submit Button */
.fct_auth_wrap button[type="submit"],
.fct_auth_wrap input[type="submit"],
.fluent_auth_wrapper button[type="submit"],
.fluent_auth_wrapper input[type="submit"] {
	position: relative;
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	padding: 0.625rem 1rem;
	border: 1px solid transparent;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	border-radius: 0.375rem;
	color: white;
	background-color: #0284c7 !important;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
}

.fct_auth_wrap button[type="submit"]:hover,
.fct_auth_wrap input[type="submit"]:hover,
.fluent_auth_wrapper button[type="submit"]:hover,
.fluent_auth_wrapper input[type="submit"]:hover {
	background-color: #0369a1 !important;
}

.fct_auth_wrap button[type="submit"]:focus,
.fct_auth_wrap input[type="submit"]:focus,
.fluent_auth_wrapper button[type="submit"]:focus,
.fluent_auth_wrapper input[type="submit"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

.fct_auth_wrap button[type="submit"]:disabled,
.fluent_auth_wrapper button[type="submit"]:disabled {
	opacity: 0.75;
	cursor: not-allowed;
}

/* Loading State */
.fct_auth_wrap .fct_loading,
.fluent_auth_wrapper .loading {
	display: inline-block;
	margin-left: 0.5rem;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Messages */
.fct_auth_wrap .fct_error,
.fct_auth_wrap .error,
.fluent_auth_wrapper .fct_error,
.fluent_auth_wrapper .error {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.fct_auth_wrap .fct_success,
.fct_auth_wrap .success,
.fluent_auth_wrapper .fct_success,
.fluent_auth_wrapper .success {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.fct_auth_wrap .fct_info,
.fct_auth_wrap .info,
.fluent_auth_wrapper .fct_info,
.fluent_auth_wrapper .info {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	background-color: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #0284c7;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

/* Form Toggle Links */
.fct_auth_wrap .fct_form_toggle,
.fluent_auth_wrapper .form-toggle {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
	text-align: left;
}

.fct_auth_wrap .fct_form_toggle p,
.fluent_auth_wrapper .form-toggle p {
	font-size: 0.875rem;
	color: #6b7280;
}

/* Social Login Buttons */
.fct_auth_wrap .fct_social_login,
.fluent_auth_wrapper .social-login {
	margin-top: 1.5rem;
}

.fct_auth_wrap .fct_social_login button,
.fluent_auth_wrapper .social-login button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1rem;
	margin-bottom: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	background-color: white;
	color: #374151;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
}

.fct_auth_wrap .fct_social_login button:hover,
.fluent_auth_wrapper .social-login button:hover {
	background-color: #f9fafb;
	border-color: #9ca3af;
}

/* Divider */
.fct_auth_wrap .fct_divider,
.fluent_auth_wrapper .divider {
	position: relative;
	margin: 1.5rem 0;
	text-align: left;
}

.fct_auth_wrap .fct_divider::before,
.fluent_auth_wrapper .divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #e5e7eb;
}

.fct_auth_wrap .fct_divider span,
.fluent_auth_wrapper .divider span {
	position: relative;
	padding: 0 1rem;
	background-color: white;
	color: #6b7280;
	font-size: 0.875rem;
}

/* Password Strength Meter */
.fct_auth_wrap .password-strength,
.fluent_auth_wrapper .password-strength {
	margin-top: 0.5rem;
}

.fct_auth_wrap .password-strength-bar,
.fluent_auth_wrapper .password-strength-bar {
	height: 0.25rem;
	background-color: #e5e7eb;
	border-radius: 0.125rem;
	overflow: hidden;
}

.fct_auth_wrap .password-strength-bar-fill,
.fluent_auth_wrapper .password-strength-bar-fill {
	height: 100%;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.fct_auth_wrap .password-strength-weak,
.fluent_auth_wrapper .password-strength-weak {
	background-color: #ef4444;
}

.fct_auth_wrap .password-strength-medium,
.fluent_auth_wrapper .password-strength-medium {
	background-color: #f59e0b;
}

.fct_auth_wrap .password-strength-strong,
.fluent_auth_wrapper .password-strength-strong {
	background-color: #10b981;
}

/* Responsive Design */
@media (max-width: 640px) {
	.fct_auth_wrap,
	.fluent_auth_wrapper {
		padding: 1rem 0.5rem;
	}

	.fct_auth_wrap form,
	.fluent_auth_wrapper form {
		padding: 1.5rem 1rem;
	}

	.fct_auth_wrap h3,
	.fct_auth_wrap h2,
	.fluent_auth_wrapper h3,
	.fluent_auth_wrapper h2 {
		font-size: 1.5rem;
		line-height: 2rem;
	}

	.fct_auth_wrap .fct_remember_row,
	.fluent_auth_wrapper .remember-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}
