/**
 * Page Access Request – modal popup
 * All selectors are scoped to .parg-overlay / .parg-modal to avoid
 * leaking styles onto the host website.
 */

/* =========================================================================
   Overlay — full-viewport backdrop, non-dismissible
   ========================================================================= */

   .parg-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	/* Opaque backdrop so page content is fully hidden behind the popup */
	background-color: rgba(190, 32, 144, 0.5);
	background: linear-gradient(90deg, rgba(190, 32, 144, 0.5) 0%, rgba(138, 25, 104, 0.5) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	/* No pointer events on the backdrop so accidental clicks do nothing */
	cursor: default;
}

.parg-overlay[hidden] {
	display: none !important;
}

/* Lock page scroll whenever the overlay is present */
body.parg-has-popup {
	overflow: hidden !important;
}

/* =========================================================================
   Modal container
   ========================================================================= */

.parg-modal {
	position: relative;
	background: #ffffff;
	width: 100%;
	max-width: 855px;
	max-height: 92vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 79px 52px 80px;
	box-sizing: border-box; 
	/* No border-radius — sharp edges per design */
	border-radius: 8px;
	/* Subtle lift */
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
	/* Prevent click propagation to the backdrop */
	cursor: auto;
}

/* =========================================================================
   Close button
   ========================================================================= */

.parg-modal .parg-modal__close {
    position: absolute;
    top: 80px;
    right: 95px;
    background: none;
    border: none;
    padding: 4px 6px;
    font-size: 15px;
    line-height: 1;
    color: #BD1A8D;
    opacity: 1;
    cursor: pointer;
    transition: opacity 0.12s ease, color 0.12s ease;
    font-weight: 600;
}

.parg-modal .parg-modal__close:hover,
.parg-modal .parg-modal__close:focus {
	color: #464646;
	opacity: 1;
	outline: none;
}

/* =========================================================================
   Logo
   ========================================================================= */

.parg-modal .parg-modal__logo {
	display: block;
	text-align: center;
	font-family: Nexa-Heavy, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 900;
	font-size: 24px;
	letter-spacing: -0.02em;
	color: #bd1a8d;
	line-height: 1;
	text-transform: lowercase;
	max-width: 503px;
	margin: 0 auto  57px auto;
}

/* =========================================================================
   Info notice
   ========================================================================= */

.parg-modal .parg-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 10px 6px 19px;
	border: 1px solid #bd1a8d;
	margin: 0 0 48px;
	font-family: Nexa-Regular, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 30px;
	color: #464646;
	border-radius: 0;
	box-sizing: border-box;
	font-weight: 300;
	border-radius: 8px;
}

.parg-modal .parg-notice__icon {
	flex-shrink: 0;
	font-size: 15px;
	color: #bd1a8d;
	margin-top: 7px;
	line-height: 1.6;
}

/* =========================================================================
   Pre-link line ("Already have access? sign-in")
   ========================================================================= */

.parg-modal .parg-modal__prelink {
    margin: 0 0 36px;
    font-family: Nexa-Heavy, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 26px;
    color: #464646;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================================
   Screen heading (Sign In / Request Access / …)
   ========================================================================= */

.parg-modal .parg-modal__heading {
	margin: 0 0 34px;
	font-family: Nexa-Heavy, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 32px;
	line-height: 40px;
	color: #464646;
	letter-spacing: 0;
	border: none;
	padding: 0;
	background: none;
}

/* =========================================================================
   Form
   ========================================================================= */

.parg-modal .parg-form {
	margin: 0;
	padding: 0;
}

.parg-modal .parg-form__field {
	margin-bottom: 28px;
}

.parg-modal .parg-form__field label {
	display: block;
	margin-bottom: 14px;
	font-family: Nexa-Heavy, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 18px;
	color: #464646;
	line-height: 22px;
}

.parg-modal .parg-form__field label .parg-required {
	color: #bd1a8d;
	margin-left: 2px;
	font-weight: 900;
}

.parg-modal .parg-form__field input[type="text"],
.parg-modal .parg-form__field input[type="email"],
.parg-modal .parg-form__field input[type="password"],
.parg-modal .parg-form__field textarea {
	display: block;
	width: 100%;
	padding: 12px 12px;
	background: #f2f2f2;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: Nexa-Regular, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #464646;
	line-height: 20px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	height: 40px;
	background: #F2F2F2;
	font-weight: 300;
}

.parg-modal .parg-form__field input::placeholder,
.parg-modal .parg-form__field textarea::placeholder {
	color: #999;
	font-style: normal;
}

.parg-modal .parg-form__field input:focus,
.parg-modal .parg-form__field textarea:focus {
	border-color: #bd1a8d;
	background-color: #fff;
	outline: none;
}

.parg-modal .parg-form__field textarea {
	min-height: 110px;
	resize: vertical;
}

/* =========================================================================
   Inline message (success / error)
   ========================================================================= */

.parg-modal .parg-form__msg {
	padding: 11px 14px;
	margin: 0 0 14px;
	font-family: Nexa-Regular, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.55;
	border-radius: 0;
	box-sizing: border-box;
}

.parg-modal .parg-form__msg[hidden] {
	display: none !important;
}

.parg-modal .parg-form__msg--error {
	background: #fdecea;
	color: #b71c1c;
	border: 1px solid #f5b8b0;
}

.parg-modal .parg-form__msg--success {
	background: #f0faf1;
	color: #1b5e20;
	border: 1px solid #a8d5ab;
}

/* =========================================================================
   Primary button  "enter | →"
   ========================================================================= */

.parg-modal .parg-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: auto;
	min-width: 150px;
	margin: 55px auto 0;
	padding: 13px 30px;
	background: #bd1a8d;
	border: none;
	border-radius: 0;
	color: #ffffff;
	font-family: Nexa-Heavy, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 18px;
	letter-spacing: 0;
	text-transform: lowercase;
	cursor: pointer;
	transition: background-color 0.15s ease;
	line-height: 32px;
	white-space: nowrap;
	-webkit-font-smoothing: antialiased;
}

.parg-modal .parg-btn:hover,
.parg-modal .parg-btn:focus {
	background: #8a1268;
	outline: none;
}

.parg-modal .parg-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.parg-modal .parg-btn .parg-btn__sep {
	margin: 0 10px;
	opacity: 0.5;
	font-weight: 300;
	font-size: 15px;
}

.parg-modal .parg-btn .parg-btn__arrow {
	font-size: 22px;
	font-weight: 300;
}

/* =========================================================================
   Link row below login form
   ========================================================================= */

.parg-modal .parg-modal__links {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin-top: 32px;
}

/* =========================================================================
   Generic inline link
   ========================================================================= */

.parg-modal .parg-link {
    color: #bd1a8d;
    text-decoration: none;
    font-family: Nexa-Heavy, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    transition: color 0.12s ease;
	margin-left: 10px;
	text-decoration: none;  
}

.parg-modal .parg-link:hover,
.parg-modal .parg-link:focus {
	color: #8a1268;
	text-decoration: none;
	outline: none;
}

/* =========================================================================
   Screen visibility
   ========================================================================= */

.parg-modal .parg-screen[hidden] {
	display: none !important;
}

/* Forgot-password screen — back + submit button row */
.parg-modal .parg-form__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 22px 0 0;
}
.parg-modal .parg-form__actions .parg-btn {
	margin: 0;
}
.parg-modal .parg-btn--back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F2F2F2;
    color: #bd1a8d;
    min-width: 50px;
    height: 58px;
    padding: 11px 16px;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.parg-modal .parg-btn--back:hover,
.parg-modal .parg-btn--back:focus {
	background: #bd1a8d;
	color: #ffffff;
	outline: none;
}

/* =========================================================================
   Responsive 
   ========================================================================= */

   .parg-modal__logo img { max-width: 200px; width: 100%; } .parg-screen { max-width: 503px; margin: 0 auto; } .parg-modal .parg-link[data-parg-goto="forgot"] { color: #464646; }   

   @media (max-width: 1023px) {
	.parg-modal { max-width: 600px; padding: 50px 50px 60px; } 
	.parg-modal .parg-modal__logo { margin: 0 auto 40px auto; } 
	.parg-modal .parg-modal__close { top: 15px; right: 15px; } 
	.parg-modal .parg-notice { margin: 0 0 40px; } 
	.parg-modal .parg-modal__prelink { font-size: 24px; margin-bottom: 30px; } 
	.parg-modal .parg-modal__heading { font-size: 28px; }
   }
   @media (max-width: 680px) {
	.parg-modal {
		padding: 56px 20px 56px;
		max-height: 90vh;
	}

	.parg-modal .parg-modal__heading {
		font-size: 24px;
		line-height: 32px;
		margin-bottom: 27px;
	}

	.parg-modal .parg-modal__links {
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}
	div#parg-overlay { padding: 20px; } 
	.parg-modal .parg-modal__logo { margin: 0 auto 24px auto; } 
	.parg-modal .parg-notice { font-size: 12px; line-height: 28px; padding: 1px 10px 0px 14px; margin: 0 0 49px; } 
	.parg-modal .parg-modal__prelink { font-size: 14px; line-height: 20px; margin-bottom: 42px; } 
	.parg-modal .parg-link { font-size: 18px; line-height: 32px; margin-left: 18px; } 
	.parg-modal .parg-form__field label { font-size: 14px; line-height: 20px; color: #464646; margin-bottom: 10px; } 
	.parg-modal .parg-form__field { margin-bottom: 20px; } 
	.parg-modal .parg-btn { margin: 48px auto 0; padding: 10px 26px; font-size: 18px; } 
	.parg-modal .parg-btn--back { height: 52px; }
	.parg-modal .parg-form__field input[type="text"], .parg-modal .parg-form__field input[type="email"], .parg-modal .parg-form__field input[type="password"], .parg-modal .parg-form__field textarea { font-size: 12px; line-height: 18px; padding: 9px 9px; letter-spacing: 0; }
}


/* =========================================================================
   Required field validation — red border when left empty on submit
   ========================================================================= */

.parg-modal .parg-form__field.parg-field--invalid input[type="text"],
.parg-modal .parg-form__field.parg-field--invalid input[type="email"],
.parg-modal .parg-form__field.parg-field--invalid input[type="password"],
.parg-modal .parg-form__field.parg-field--invalid textarea {
	border-color: #d32f2f !important;
	background-color: #fff8f8;
}


