/* =============================================================
   OpenID Authentication Plugin — Login / Register (VNU Theme)
   Layout: single-column card, form → divider → provider buttons
   Design: __Template Design__/VNU OJS (screens 2g Login / 2h Register)
   Tokens: dark #123527 · green #0d854c · green-hover #0a6b3d
           text #3a4a41 · muted #7a8a80 · borders #d4ddd6/#e4e7e4
           page bg #f6f8f6 · serif 'Newsreader' (loaded by the theme)
   ============================================================= */

/* ---- Page wrapper ----
   Soft green field behind the card, edge to edge. The theme's main content
   area is padded, so pull the background out with a viewport-wide inset. */
.page_openid_login {
	position: relative;
	padding: 44px 0 56px;
}

.page_openid_login::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	/* background: #f6f8f6; */
	z-index: 0;
}

.openid-login-wrapper,
.page_openid_login > * {
	position: relative;
	z-index: 1;
}

/* ---- Centered single-column card ---- */
.openid-login-wrapper {
	max-width: 440px;
	margin: 0 auto;
}

/* The registration form needs a wider card for its two-column grid */
.openid-register-wrapper {
	max-width: 560px;
}

.openid-login-card {
	background: #fff;
	border: 1px solid #e4e7e4;
	border-radius: 12px;
	padding: 32px 34px 28px;
	box-shadow: 0 4px 16px rgba(18, 53, 39, 0.06);
}

/* Card title ("Sign in" / "Create an account") */
.openid-card-title {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 23px;
	font-weight: 600;
	color: #123527;
	text-align: center;
	margin: 0;
	line-height: 1.3;
}

/* Sub-title under the card title */
.openid-card-context {
	font-size: 13px;
	color: #7a8a80;
	margin: 5px 0 22px;
	line-height: 1.5;
	text-align: center;
}

/* "New author? Register" / "Already have an account? Login" */
.openid-card-footer {
	font-size: 12.5px;
	color: #7a8a80;
	text-align: center;
	margin: 16px 0 0;
}

.openid-card-footer a {
	color: #0d854c;
	font-weight: 600;
	text-decoration: none;
}

.openid-card-footer a:hover {
	text-decoration: underline;
}

/* ---- Form fields ---- */
.openid-field {
	margin-bottom: 14px;
}

.openid-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #3a4a41;
	margin-bottom: 6px;
}

/* Password row: label left, forgot-link right */
.openid-password-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 6px;
}

.openid-password-header label {
	margin-bottom: 0;
}

.openid-forgot-link {
	font-size: 12px;
	font-weight: 600;
	color: #0d854c !important;
	text-decoration: none;
	white-space: nowrap;
}

.openid-forgot-link:hover {
	text-decoration: underline;
	color: #0a6b3d !important;
}

.openid-input {
	display: block;
	width: 100%;
	height: 42px;
	padding: 11px 13px;
	font-size: 13.5px;
	font-family: 'Archivo', system-ui, sans-serif;
	color: #123527;
	background: #fff;
	border: 1px solid #d4ddd6;
	border-radius: 8px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	box-sizing: border-box;
}

.openid-input:focus {
	border-color: #0d854c;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(13, 133, 76, .12);
}

.openid-field-checkbox {
	margin-bottom: 18px;
}

.openid-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: normal;
	color: #5c6f64;
	cursor: pointer;
	margin: 0;
}

.openid-checkbox-label input[type="checkbox"] {
	margin: 0;
	flex-shrink: 0;
	accent-color: #0d854c;
}

/* ---- Sign-in button (full-width, VNU green) ---- */
.openid-submit-btn {
	display: block;
	width: 100%;
	padding: 13px 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: #fff;
	background-color: #0d854c;
	border: 1px solid #0d854c;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.openid-submit-btn:hover,
.openid-submit-btn:focus {
	background-color: #0a6b3d;
	border-color: #0a6b3d;
	outline: 0;
}

/* ---- "or" divider ---- */
.openid-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 18px;
	color: #a0aca4;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.openid-divider::before,
.openid-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e4e7e4;
}

/* ---- Provider buttons (Continue with Google / ORCID / ...) ---- */
.openid-providers-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Register card: providers sit side by side above the form */
.openid-providers-list--inline {
	flex-direction: row;
	flex-wrap: wrap;
}

.openid-providers-list--inline .openid-provider-btn {
	flex: 1 1 200px;
	font-size: 13px;
	padding: 11px 14px;
}

.openid-provider-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #d4ddd6;
	border-radius: 8px;
	text-decoration: none !important;
	color: #3a4a41 !important;
	font-size: 14px;
	font-weight: 600;
	box-shadow: none;
	transition: border-color .12s ease, background-color .12s ease;
	box-sizing: border-box;
}

.openid-provider-btn:hover {
	background-color: #fff;
	border-color: #0d854c;
	box-shadow: none;
	text-decoration: none !important;
}

.openid-provider-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}

.openid-provider-label {
	flex: 0 1 auto;
	text-align: center;
}

/* ---- Registration card: two-column field grid ---- */
.openid-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.openid-grid .openid-field {
	margin-bottom: 0;
	min-width: 0;
}

/* Fields that span the full card width (affiliation, username) */
.openid-field--full {
	grid-column: 1 / -1;
}

/* The country <select> must match the text inputs exactly */
select.openid-input {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a80' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 34px;
}

/* Required-field asterisk */
.openid-field .required {
	color: #c0392b;
	margin-left: 1px;
}

/* Password requirements hint (Register form) */
.openid-field-hint {
	font-size: 11.5px;
	color: #7a8a80;
	margin: -6px 0 0;
}

/* ---- Reviewing interests: keyword/tag input (jquery.tag-it) ---- */
.openid-tagit.tagit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	height: auto;
	padding: 7px 8px;
	border: 1px solid #d4ddd6;
	border-radius: 8px;
	background: #fff;
	list-style: none;
	margin: 0;
	cursor: text;
}

.openid-tagit.tagit:focus-within {
	border-color: #0d854c;
	box-shadow: 0 0 0 3px rgba(13, 133, 76, .12);
}

.openid-tagit .tagit-choice {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #eef5f0;
	color: #123527;
	border-radius: 14px;
	padding: 4px 6px 4px 12px;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.openid-tagit .tagit-label {
	line-height: 1.4;
}

.openid-tagit .tagit-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	color: #0d854c;
	cursor: pointer;
	font-size: 0;
}

.openid-tagit .tagit-close .text-icon {
	font-size: 13px;
	line-height: 1;
}

.openid-tagit .tagit-close:hover {
	background: #0d854c;
	color: #fff;
}

.openid-tagit .tagit-new {
	flex: 1 1 120px;
	list-style: none;
}

.openid-tagit .tagit-new input[type="text"] {
	border: 0;
	outline: 0;
	width: 100%;
	min-width: 100px;
	font: inherit;
	font-size: 13.5px;
	color: #123527;
	background: transparent;
	padding: 4px 2px;
}

/* jquery-ui autocomplete dropdown that tag-it opens beneath the field */
.ui-autocomplete {
	background: #fff;
	border: 1px solid #d4ddd6;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(18, 53, 39, .12);
	padding: 4px;
	list-style: none;
	z-index: 1000;
}

.ui-autocomplete .ui-menu-item {
	padding: 8px 10px;
	font-size: 13px;
	color: #3a4a41;
	border-radius: 6px;
	cursor: pointer;
}

.ui-autocomplete .ui-menu-item.ui-state-active,
.ui-autocomplete .ui-menu-item:hover {
	background: #eef5f0;
	color: #0d854c;
}

/* ---- Consent / reviewer opt-in blocks ---- */
.openid-consent {
	border: none;
	margin: 16px 0 0;
	padding: 0;
}

.openid-consent legend {
	font-size: 12.5px;
	font-weight: 600;
	color: #3a4a41;
	margin-bottom: 8px;
	padding: 0;
	border: none;
}

.openid-consent .openid-checkbox-label {
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 9px;
	line-height: 1.5;
}

.openid-consent .openid-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
}

.openid-consent .openid-field {
	margin-top: 12px;
}

/* ---- "Register as" role picker (Reader / Author / Reviewer) ---- */
.openid-role-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.openid-role {
	align-items: flex-start !important;
	margin-bottom: 6px !important;
}

.openid-role span {
	font-size: 12.5px;
	color: #5c6f64;
}

.openid-role b {
	color: #3a4a41;
	font-weight: 600;
}

/* Registration submit button gets a little more air above it */
.page_register .openid-submit-btn {
	margin-top: 20px;
}

.recaptcha_wrapper,
.altcha_wrapper {
	margin-top: 16px;
}

/* ---- Alert / message boxes ---- */
.openid-alert {
	padding: 13px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 13.5px;
	line-height: 1.55;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.openid-alert-info {
	background-color: #eef5f0;
	border: 1px solid #8cc6ac;
	color: #123527;
}

.openid-alert-error {
	background-color: #fdf0ef;
	border: 1px solid #efbfba;
	color: #7c2d26;
}

.openid-alert-reason {
	margin: 8px 0 0;
	font-size: 13px;
	opacity: 0.85;
}

/* ---- Utility ---- */
.margin-top-30 { margin-top: 30px; }

/* =============================================================
   Step-2 / Complete Registration page (authStep2.tpl)
   ============================================================= */

.page_oauth {
	max-width: 520px;
	margin: 0 auto;
	padding-bottom: 48px;
	min-height: 65vh;
}

.page_oauth h1 {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 23px;
	font-weight: 600;
	color: #123527;
	text-align: center;
	margin: 28px 0 18px;
}

/* ---- Yes / No choice list ---- */
#openid-choice-select {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

#openid-choice-select li {
	margin-bottom: 10px;
}

/* Clickable choice spans */
.step2-choice-links {
	color: #0d854c;
	cursor: pointer;
	text-decoration: underline;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 600;
}

.step2-choice-links:hover {
	color: #0a6b3d;
}

/* ---- Hidden register / login panels (JS toggles) ---- */
#oauth #register-form,
#oauth #login-form {
	display: none;
}

/* ---- Fieldsets: strip browser defaults ---- */
#oauth fieldset {
	border: none;
	margin: 0 0 20px;
	padding: 0;
}

#oauth fieldset legend {
	font-size: 14px;
	font-weight: 700;
	color: #123527;
	margin-bottom: 12px;
	padding: 0;
}

/* ---- Warning / help notification ---- */
#oauth .cmp_notification.warning {
	background-color: #eef5f0;
	border: 1px solid #8cc6ac;
	border-left: 4px solid #0d854c;
	border-radius: 8px;
	color: #123527;
	font-size: 13px;
	line-height: 1.55;
	padding: 12px 14px;
	margin-bottom: 20px;
}

/* ---- Field rows ---- */
.page_register .fields > div,
#login-form .username,
#login-form .password,
#reviewerInterests {
	margin-bottom: 14px;
}

/* Labels */
.page_register label,
#login-form label {
	display: block;
}

.page_register .label,
#login-form .label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #3a4a41;
	margin-bottom: 6px;
}

/* Inputs and select */
.page_register input[type="text"],
.page_register input[type="email"],
.page_register select,
#login-form input[type="text"],
#login-form input[type="password"] {
	display: block;
	width: 100%;
	height: 42px;
	padding: 11px 13px;
	font-size: 13.5px;
	font-family: 'Archivo', system-ui, sans-serif;
	color: #123527;
	background: #fff;
	border: 1px solid #d4ddd6;
	border-radius: 8px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	box-sizing: border-box;
}

.page_register input[type="text"]:focus,
.page_register input[type="email"]:focus,
.page_register select:focus,
#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus {
	border-color: #0d854c;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(13, 133, 76, .12);
}

/* ---- Consent / opt-in checkboxes ---- */
fieldset.consent .optin label,
fieldset.reviewer .optin label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 12.5px;
	font-weight: normal;
	color: #5c6f64;
	cursor: pointer;
	line-height: 1.55;
	margin-bottom: 10px;
}

fieldset.consent .optin input[type="checkbox"],
fieldset.reviewer .optin input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: #0d854c;
}

#oauth #register-form .optin-privacy .required {
	color: #c0392b;
}

/* ---- Submit / connect buttons ---- */
#oauth .buttons {
	margin-top: 24px;
}

#oauth button.submit {
	display: block;
	width: 100%;
	padding: 13px 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: #fff;
	background-color: #0d854c;
	border: 1px solid #0d854c;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

#oauth button.submit:hover,
#oauth button.submit:focus {
	background-color: #0a6b3d;
	border-color: #0a6b3d;
	outline: 0;
}

/* ---- Login (connect) form ---- */
#login-form a {
	display: inline-block;
	margin-top: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #0d854c;
	text-decoration: none;
}

#login-form a:hover {
	text-decoration: underline;
	color: #0a6b3d;
}

/* ---- Reviewer interests input ---- */
#reviewerInterests .label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #3a4a41;
	margin-bottom: 6px;
}
