/* SlingPath Login Modal v1.1 */

/* ── Hide login/logout menu items based on auth state ── */
li.slm-hidden {
	display: none !important;
}

/* ── Overlay (dimmed background) ── */
.slm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.60);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 16px;
	/* Fade in */
	animation: slm-fade-in 0.18s ease;
}
.slm-overlay[hidden] {
	display: none;
}
@keyframes slm-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ── Modal box ── */
.slm-modal {
	background: #fff;
	border-radius: 4px;
	width: 100%;
	max-width: 580px;
	position: relative;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
	animation: slm-slide-up 0.18s ease;
}
@keyframes slm-slide-up {
	from { transform: translateY(16px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* ── Close button ── */
.slm-close {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #ddd;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
	z-index: 10;
	transition: background 0.15s;
}
.slm-close:hover {
	background: #f0f0f0;
}

/* ── Header bar ── */
.slm-header {
	background: #2196F3;
	padding: 22px 30px;
	text-align: center;
}
.slm-header span {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

/* ── Body ── */
.slm-body {
	padding: 30px 36px 36px;
	display: flex;
	flex-direction: column;
}

/* ── Messages (error / success) ── */
.slm-message {
	border-radius: 4px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 18px;
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}
.slm-message--error {
	background: #fdecea;
	color: #c62828;
	border-color: #f5c6cb;
}
.slm-message[hidden] {
	display: none;
}

/* ── Field rows ── */
.slm-field-wrap {
	display: flex;
	align-items: center;
	border: 1.5px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 18px;
	background: #fff;
}
.slm-field-wrap:focus-within {
	border-color: #2196F3;
}

.slm-icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	background: #f3f4f6;
	border-right: 1.5px solid #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slm-field-wrap input {
	flex: 1;
	border: none;
	outline: none;
	padding: 0 16px;
	font-size: 15px;
	color: #333;
	height: 56px;
	background: transparent;
	box-shadow: none !important;
}
.slm-field-wrap input::placeholder {
	color: #999;
}

/* ── Password toggle ── */
.slm-pw-toggle {
	flex-shrink: 0;
	background: none;
	border: none;
	padding: 0 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	height: 56px;
}
.slm-pw-toggle:hover svg {
	stroke: #1565C0;
}

/* ── Forgot / Back links ── */
.slm-forgot,
.slm-back {
	display: inline-block;
	color: #2196F3;
	font-size: 14px;
	text-decoration: none;
	margin-bottom: 20px;
}
.slm-forgot:hover,
.slm-back:hover {
	text-decoration: underline;
}
.slm-back {
	margin-top: 14px;
	margin-bottom: 0;
}

/* ── Reset intro text ── */
.slm-reset-intro {
	font-size: 14px;
	color: #555;
	margin: 0 0 20px;
	line-height: 1.5;
}

/* ── Primary button ── */
.slm-btn {
	border: none;
	border-radius: 6px;
	width: 100%;
	padding: 18px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: background 0.15s;
}
.slm-btn--primary {
	background: #2196F3;
	color: #fff;
}
.slm-btn--primary:hover {
	background: #1976D2;
}
.slm-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ── Spinner ── */
.slm-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: slm-spin 0.7s linear infinite;
	flex-shrink: 0;
}
.slm-spinner[hidden] {
	display: none;
}
@keyframes slm-spin {
	to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
	.slm-modal  { max-width: 100%; }
	.slm-body   { padding: 24px 20px 28px; }
	.slm-header { padding: 18px 20px; }
}
