/**
 * Frontend Stylesheet for Digitrix Labs Passkeys and Email Link Access
 */

/* Container & Layout */
.dl-pe-access-form-container {
	max-width: 450px;
	margin: 20px auto;
	padding: 30px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	border: 1px solid #e2e8f0;
}

/* Fields & Labels */
.dl-pe-access-form-group {
	margin-bottom: 20px;
}

.dl-pe-access-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a202c;
	margin-bottom: 8px;
}

.dl-pe-access-input {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #2d3748;
	background-color: #f7fafc;
	border: 1px solid #cbd5e0;
	border-radius: 8px;
	box-sizing: border-box;
	transition: all 0.25s ease-in-out;
}

.dl-pe-access-input:focus {
	border-color: #4f46e5;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
	outline: none;
}

/* Button & Spinner */
.dl-pe-access-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background-color: #4f46e5;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
	transition: all 0.2s ease;
	position: relative;
	min-height: 48px;
}

.dl-pe-access-submit-btn:hover {
	background-color: #4338ca;
	box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25);
}

.dl-pe-access-submit-btn:active {
	transform: translateY(1px);
}

.dl-pe-access-submit-btn:disabled {
	background-color: #a5b4fc;
	cursor: not-allowed;
	box-shadow: none;
}

.dl-pe-access-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: dl-pe-access-spin 0.8s ease-in-out infinite;
	margin-left: 10px;
}

@keyframes dl-pe-access-spin {
	to { transform: rotate(360deg); }
}

/* Notices & Messaging */
.dl-pe-access-response-message {
	margin-top: 15px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	display: none;
}

.dl-pe-access-response-message.success {
	background-color: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
	display: block;
}

.dl-pe-access-response-message.error {
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
	display: block;
}

/* wp-login.php Toggler and Styling Integration */
#dl-pe-access-login-toggle-container {
	margin-top: 15px;
	text-align: center;
}

#dl-pe-access-toggle-link {
	text-decoration: none;
	font-size: 13px;
	color: #4f46e5;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	transition: color 0.15s ease;
}

#dl-pe-access-toggle-link:hover {
	color: #4338ca;
}

#dl-pe-access-toggle-link .dashicons {
	margin-right: 5px;
	font-size: 17px;
	width: 17px;
	height: 17px;
}

/* Spinner for wp-login.php submit button */
#dl-pe-access-wp-submit {
	position: relative;
}

#dl-pe-access-wp-submit .dl-pe-access-spinner {
	width: 15px;
	height: 15px;
	margin-left: 8px;
	border-width: 2px;
}

.login .dl-pe-access-response-message {
	border-width: 1px;
	border-style: solid;
	font-size: 14px;
	line-height: 1.4;
	padding: 12px;
	border-radius: 4px;
	clear: both;
	width: 100%;
	box-sizing: border-box;
	margin-top: 15px;
}

.dl-pe-access-error-notice,
.dl-pe-access-logged-in-notice {
	max-width: 450px;
	margin: 20px auto;
	padding: 15px 20px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	border: 1px solid;
}

.dl-pe-access-error-notice {
	background-color: #fff5f5;
	color: #c53030;
	border-color: #feb2b2;
}

.dl-pe-access-logged-in-notice {
	background-color: #ebf8ff;
	color: #2b6cb0;
	border-color: #bee3f8;
}
