/**
 * CFS Login Dialog Styles
 * Modern, clean login form styling
 */

/* Form fields */

.cfs-login-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	color: #2c3e50;
}

.cfs-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.cfs-input:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Error message */
.cfs-login-error {
	padding: 12px 16px;
	background-color: #ffe6e6;
	border: 1px solid #ffcccc;
	border-radius: 6px;
	color: #c0392b;
	font-size: 0.9rem;
	margin-top: 16px;
}

/* Divider */
.cfs-login-divider {
	margin: 24px 0 20px;
	text-align: center;
	position: relative;
}

.cfs-login-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e0e0e0;
}

.cfs-login-divider span {
	background: #fff;
	padding: 0 16px;
	position: relative;
	color: #7f8c8d;
	font-size: 0.9rem;
}

/* Links section */
.cfs-login-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cfs-link-button {
	display: block;
	padding: 12px 24px;
	text-align: center;
	background: #ecf0f1;
	color: #2c3e50;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: background-color 0.2s;
}

.cfs-link-button:hover {
	background: #d5dbdb;
	text-decoration: none;
}

.cfs-link-secondary {
	display: block;
	text-align: center;
	color: #3498db;
	text-decoration: none;
	font-size: 0.95rem;
}

.cfs-link-secondary:hover {
	text-decoration: underline;
}

/* Buttons */
.cfs-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	min-width: 120px;
}

.cfs-btn:active {
	transform: scale(0.98);
}

.cfs-btn-primary {
	background: #3498db;
	color: #fff;
}

.cfs-btn-primary:hover {
	background: #2980b9;
}

.cfs-btn-primary:disabled {
	background: #95a5a6;
	cursor: not-allowed;
}

.cfs-btn-secondary {
	background: #ecf0f1;
	color: #2c3e50;
}

.cfs-btn-secondary:hover {
	background: #d5dbdb;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.cfs-login-field label {
		font-size: 1rem;
	}
	
	.cfs-input {
		padding: 14px 16px;
		font-size: 16px; /* Prevent zoom on iOS */
	}
	
	.cfs-btn {
		padding: 14px 24px;
		font-size: 1.05rem;
	}
}
