/* Auth widget - if "Log in" button is substituted with a name/dropdown widget */
/* Used by the static site pages only */

.auth-widget {
    position: relative;
    display: inline-block;
}

.auth-widget-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2f5bea;
    padding: 8px 12px;
    border-radius: 8px;
}

.auth-widget-toggle:hover {
    background-color: #eef1fb;
}

.auth-widget-caret {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.auth-widget-dropdown {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 192px;
    border-radius: 6px;
	border: 2px solid #99a1af;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    padding: 4px 0;
    z-index: 50;
	display: none;
}

.auth-widget.auth-widget-open .auth-widget-dropdown {
	display: block;
}
.auth-widget-icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    flex-shrink: 0;
}

.nav a.auth-widget-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    font-size: 14px;
    color: #364153;
    text-decoration: none;
	border-radius: 0;
}

.nav a.auth-widget-link:hover {
    background-color: #ffe8a8;
}

/* Popups - triggered by links in the footer */
/* used by both static site and front-end Laravel pages */

.ptrigger {
	cursor: pointer;
}

/* Prefixed l- to avoid colliding with any modal/btn/input classes in site.css */

.l-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
}
.l-modal.l-modal-open {
	display: block;
}
.l-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.l-modal-box {
	position: relative;
	z-index: 1001;
	max-width: 480px;
	width: 90%;
	margin: 8vh auto 0;
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	font-family: sans-serif;
}

.l-modal-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
}

.l-field {
	margin-bottom: 10px;
}
.l-input,
.l-textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: sans-serif;
	font-size: 14px;
	box-sizing: border-box;
}
.l-textarea {
	min-height: 80px;
	resize: vertical;
}
.l-field-error {
	display: block;
	color: #cc2222;
	font-size: 12px;
	margin-top: 2px;
}

.l-alert {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-family: sans-serif;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.l-alert-success {
	background: #e8f5e8;
	color: #1a6e1a;
	border: 1px solid #2a8a2a;
}
.l-alert-error {
	background: #fde8e8;
	color: #aa1a1a;
	border: 1px solid #cc2222;
}
.l-alert[hidden] {
	display: none;
}

.l-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.l-btn {
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid #ccc;
	background: #fff;
	color: #333;
	font-family: sans-serif;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
}
.l-btn:hover {
	background: #f2f2f2;
}
.l-btn-primary {
	background: #2f5bea;
	color: #fff;
	border-color: #2f5bea;
	box-shadow: oklch(1 0 0 / 0.06) 0px 0.5px 0px 0.5px inset, oklab(0.53336 -0.0162074 -0.220421 / 0.3) 0px 3px 2px -2px, oklab(0.53336 -0.0162074 -0.220421 / 0.3) 0px 4px 3px -2px;
}
.l-btn-primary:hover {
	background: #333;
}
.l-btn-success {
	background: #2a8a2a;
	color: #fff;
	border-color: #2a8a2a;
}
.l-btn-success:hover {
	background: #237023;
}