/**
 * Compression Works Login Widget Styles
 * Matches design from landingcode.html
 */

.cw-login-widget-wrapper {
	width: 100%;
	max-width: 28rem;
	margin: 0 auto;
}

.cw-login-card {
	background-color: #ffffff;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	width: 100%;
}

.cw-login-title {
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	color: #1f2937;
	margin-bottom: 32px;
	margin-top: 0;
	font-family: 'Inter', 'Roboto', sans-serif;
}

.cw-login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Input Wrapper */
.cw-input-wrapper {
	position: relative;
	width: 100%;
}

.cw-input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: #9ca3af;
	pointer-events: none;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cw-input-icon svg {
	width: 100%;
	height: 100%;
}

.cw-input {
	display: block;
	width: 100%;
	padding: 12px 12px 12px 40px;
	font-family: 'Inter', 'Roboto', sans-serif;
	font-size: 14px;
	color: #111827;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	transition: all 200ms ease-in-out;
	box-sizing: border-box;
}

.cw-input:focus {
	outline: none;
	border-color: #bf2e2e;
	box-shadow: 0 0 0 2px rgba(191, 46, 46, 0.1);
}

.cw-input::placeholder {
	color: #9ca3af;
}

/* Forgot Password */
.cw-forgot-password {
	display: flex;
	justify-content: flex-end;
}

.cw-forgot-password a {
	font-size: 14px;
	font-weight: 500;
	color: #2563eb;
	text-decoration: none;
	transition: color 200ms ease-in-out;
}

.cw-forgot-password a:hover {
	color: #1d4ed8;
	text-decoration: none;
}

/* Compliance Section */
.cw-compliance-section {
	margin-top: 16px;
	border: 2px solid #bf2e2e;
	border-radius: 12px;
	padding: 16px;
	background-color: #fef2f2;
}

.cw-compliance-title {
	font-size: 14px;
	font-weight: 700;
	color: #bf2e2e;
	margin-bottom: 12px;
	margin-top: 0;
	font-family: 'Inter', 'Roboto', sans-serif;
}

.cw-compliance-checkbox-wrapper {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
}

.cw-compliance-checkbox {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: #bf2e2e;
	flex-shrink: 0;
}

.cw-compliance-label {
	font-size: 12px;
	font-weight: 500;
	color: #374151;
	line-height: 1.5;
	cursor: pointer;
	font-family: 'Inter', 'Roboto', sans-serif;
}

/* Terms Box */
.cw-terms-box {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px;
	max-height: 120px;
	overflow-y: auto;
	font-size: 11px;
	line-height: 1.6;
	color: #4b5563;
	font-family: 'Inter', 'Roboto', sans-serif;
}

.cw-terms-box p {
	margin: 0 0 8px 0;
}

.cw-terms-box p:last-child {
	margin-bottom: 0;
}

.cw-terms-box ul {
	margin: 0;
	padding-left: 20px;
	list-style-type: disc;
}

.cw-terms-box ul li {
	margin-bottom: 4px;
	padding-left: 4px;
}

.cw-terms-box ul li:last-child {
	margin-bottom: 0;
}

.cw-terms-box ol {
	margin: 0;
	padding-left: 20px;
}

.cw-terms-box ol li {
	margin-bottom: 4px;
	padding-left: 4px;
}

.cw-terms-box ol li:last-child {
	margin-bottom: 0;
}

.cw-terms-box strong {
	font-weight: 700;
}

.cw-terms-box em {
	font-style: italic;
}

/* Custom Scrollbar for Terms Box */
.cw-terms-box::-webkit-scrollbar {
	width: 6px;
}

.cw-terms-box::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.cw-terms-box::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}

.cw-terms-box::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* Login Button */
.cw-login-button {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	color: #ffffff;
	background-color: #b91c1c;
	border: 1px solid transparent;
	border-radius: 12px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	cursor: pointer;
	transition: all 200ms ease-in-out;
	font-family: 'Inter', 'Roboto', sans-serif;
}

.cw-login-button:hover {
	background-color: #991b1b;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	color: #ffffff;
}

.cw-login-button:focus {
	outline: 2px solid #bf2e2e;
	outline-offset: 2px;
}

.cw-login-button:active {
	transform: translateY(1px);
}

/* Remember Me */
.cw-remember-me {
	display: flex;
	align-items: center;
	margin-top: -8px;
}

.cw-remember-me label {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
	font-family: 'Inter', 'Roboto', sans-serif;
}

.cw-remember-me input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	cursor: pointer;
	accent-color: #bf2e2e;
	flex-shrink: 0;
}

/* Message Area */
.cw-login-message {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 16px;
	font-family: 'Inter', 'Roboto', sans-serif;
	display: none;
}

.cw-message-success {
	background-color: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.cw-message-error {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* Loading Spinner */
.cw-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: cw-spin 0.6s linear infinite;
	margin-right: 8px;
}

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

.cw-login-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	pointer-events: none;
}

/* Footer Links */
.cw-footer-links {
	margin-top: 32px;
	text-align: center;
	font-size: 14px;
	color: #9ca3af;
	font-family: 'Inter', 'Roboto', sans-serif;
}

/* Footer Text */
.cw-footer-text {
	margin-top: 16px;
	text-align: center;
	font-size: 12px;
	color: #6b7280;
	font-family: 'Inter', 'Roboto', sans-serif;
	line-height: 1.5;
}

.cw-footer-links a {
	color: #9ca3af;
	text-decoration: none;
	transition: color 200ms ease-in-out;
}

.cw-footer-links a:hover {
	color: #6b7280;
	text-decoration: none;
}

.cw-link-separator {
	margin: 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
	.cw-login-card {
		padding: 24px;
	}

	.cw-login-title {
		font-size: 20px;
		margin-bottom: 24px;
	}
}
