/**
 * Keino Console Login Modal Styles
 *
 * Styled to match Salient theme design system.
 */

/* Modal overlay */
.keino-login-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

/* Backdrop - matches Salient off-canvas overlay */
.keino-login-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

/* Modal content - matches Salient card styling */
.keino-login-modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 4px;
	padding: 48px 40px;
	max-width: 400px;
	width: 100%;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: keino-modal-appear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes keino-modal-appear {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Close button - minimal style */
.keino-login-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 20px;
	color: #888888;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.keino-login-modal-close:hover {
	background-color: #f5f5f5;
	color: #282828;
}

/* Header */
.keino-login-modal-header {
	text-align: center;
	margin-bottom: 32px;
}

.keino-login-logo {
	width: 120px;
	height: auto;
	margin-bottom: 20px;
}

.keino-login-modal-header h2 {
	margin: 0 0 8px 0;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 28px;
	font-weight: 400;
	color: #282828;
	letter-spacing: 0;
	line-height: 1.3;
}

.keino-login-subtitle {
	margin: 0;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 17px;
	font-weight: 400;
	color: #666666;
	line-height: 1.5;
}

/* Error message - matches theme accent */
.keino-login-error {
	background-color: #fff5f5;
	border-left: 3px solid #f44ce6;
	color: #282828;
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 24px;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

/* Form - minimal style matching Salient */
.keino-login-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.keino-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.keino-form-group label {
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #282828;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* Minimal form input style - matches Salient */
.keino-form-group input {
	padding: 14px 0;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 17px;
	font-weight: 400;
	color: #282828;
	border: none;
	border-bottom: 1px solid #e0e0e0;
	border-radius: 0;
	background: transparent;
	transition: border-color 0.3s ease;
	outline: none;
}

.keino-form-group input:focus {
	border-bottom-color: #825cff;
}

.keino-form-group input::placeholder {
	color: #999999;
}

/* Submit button - matches Salient button styling */
.keino-login-submit {
	padding: 16px 32px;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #ffffff;
	background: #825cff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
	margin-top: 8px;
}

.keino-login-submit:hover:not(:disabled) {
	transform: scale(1.04);
	background: #f44ce6;
	box-shadow: 0 8px 20px rgba(130, 92, 255, 0.3);
}

.keino-login-submit:active:not(:disabled) {
	transform: scale(1);
}

.keino-login-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.keino-login-submit-loading {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Spinner - using theme colors */
.keino-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: keino-spin 0.8s linear infinite;
}

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

/* Footer */
.keino-login-footer {
	text-align: center;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e0e0e0;
}

.keino-login-footer a {
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #825cff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.keino-login-footer a:hover {
	color: #f44ce6;
}

.keino-login-divider {
	color: #d1d5db;
	margin: 0 12px;
}

/* Mobile navigation button */
.keino-console-login-mobile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	color: inherit;
	text-decoration: none;
}

.keino-console-login-mobile:hover {
	opacity: 0.8;
}

.keino-console-login-mobile .icon-salient-m-user {
	font-size: 18px;
}

/* Desktop navigation button */
.keino-console-login-item a {
	cursor: pointer;
}

/* Responsive */
@media (max-width: 480px) {
	.keino-login-modal-content {
		padding: 40px 28px;
		margin: 10px;
	}

	.keino-login-modal-header h2 {
		font-size: 24px;
	}

	.keino-login-logo {
		width: 100px;
	}

	.keino-form-group label {
		font-size: 11px;
		letter-spacing: 1.5px;
	}

	.keino-form-group input {
		font-size: 16px;
		padding: 12px 0;
	}

	.keino-login-submit {
		padding: 14px 24px;
		font-size: 11px;
	}
}
