/* STAGIAIRE — Auth (registro / acceso) */

.stag-auth {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	font-family: Montserrat, system-ui, -apple-system, sans-serif;
	color: #ffffff;
	background: #0b0b0b;
}

.stag-auth__bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.stag-auth > *:not(.stag-auth__bg):not(.stag-auth-modal) {
	position: relative;
	z-index: 1;
}

.stag-auth__back {
	color: #9ca3af;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.stag-auth__back:hover,
.stag-auth__back:focus-visible {
	color: #ffc400;
}

.stag-auth .stag-landing__header-inner {
	justify-content: space-between;
}

.stag-auth__main {
	display: flex;
	justify-content: center;
	padding: 2rem 1.25rem 3rem;
}

.stag-auth__card {
	width: 100%;
	max-width: 520px;
	padding: 2rem 1.75rem;
	border-radius: 20px;
	background: linear-gradient(160deg, rgba(23, 23, 23, 0.96), rgba(11, 11, 11, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.stag-auth__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.75rem, 4vw, 2.2rem);
	line-height: 1.1;
	font-weight: 700;
}

.stag-auth__lead {
	margin: 0 0 1.5rem;
	color: #9ca3af;
	line-height: 1.6;
	font-size: 0.95rem;
}

.stag-auth__account-type {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.stag-auth__account-type-link {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: #9ca3af;
	transition: background 0.2s ease, color 0.2s ease;
}

.stag-auth__account-type-link:hover,
.stag-auth__account-type-link:focus-visible {
	color: #f3f4f6;
}

.stag-auth__account-type-link.is-active {
	background: rgba(255, 196, 0, 0.15);
	color: #ffc400;
	box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.35);
}

.stag-auth__form {
	display: grid;
	gap: 1rem;
}

.stag-auth__field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
}

.stag-auth__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #e5e7eb;
}

.stag-auth__field input[type="text"],
.stag-auth__field input[type="email"],
.stag-auth__field input[type="password"] {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.35);
	color: #ffffff;
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stag-auth__field input:focus {
	outline: none;
	border-color: rgba(255, 196, 0, 0.65);
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.15);
}

.stag-auth__hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: #9ca3af;
	line-height: 1.4;
}

.stag-auth__password-strength {
	margin-top: 0.55rem;
}

.stag-auth__password-strength-track {
	height: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.stag-auth__password-strength-bar {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: #ef4444;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.stag-auth__password-strength-label {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: #9ca3af;
}

.stag-auth__password-strength.is-level-1 .stag-auth__password-strength-bar {
	background: #ef4444;
}

.stag-auth__password-strength.is-level-1 .stag-auth__password-strength-label {
	color: #fca5a5;
}

.stag-auth__password-strength.is-level-2 .stag-auth__password-strength-bar {
	background: #f97316;
}

.stag-auth__password-strength.is-level-2 .stag-auth__password-strength-label {
	color: #fdba74;
}

.stag-auth__password-strength.is-level-3 .stag-auth__password-strength-bar {
	background: #eab308;
}

.stag-auth__password-strength.is-level-3 .stag-auth__password-strength-label {
	color: #fde047;
}

.stag-auth__password-strength.is-level-4 .stag-auth__password-strength-bar {
	background: #22c55e;
}

.stag-auth__password-strength.is-level-4 .stag-auth__password-strength-label {
	color: #86efac;
}

.stag-auth__field--checkbox {
	margin-top: 0.25rem;
}

.stag-auth__field--remember {
	margin-top: 0;
}

.stag-auth__field--remember .stag-auth__checkbox {
	cursor: pointer;
}

.stag-auth__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	cursor: default;
	font-size: 0.84rem;
	line-height: 1.5;
	color: #d1d5db;
}

.stag-auth__checkbox input {
	margin-top: 0.2rem;
	flex-shrink: 0;
	accent-color: #ffc400;
	cursor: pointer;
}

.stag-auth__checkbox-label {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-weight: inherit;
	line-height: 1.5;
	cursor: pointer;
}

.stag-auth__rgpd-link {
	color: #ffc400;
	text-decoration: underline;
	cursor: pointer;
}

.stag-auth__rgpd-link:hover,
.stag-auth__rgpd-link:focus-visible {
	color: #ffe066;
}

.stag-auth__submit {
	width: 100%;
	margin-top: 0.35rem;
	animation: none;
}

.stag-auth__submit.stag-landing__btn--primary {
	background: #ffc400;
	color: #0b0b0b;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(255, 196, 0, 0.28);
}

.stag-auth__submit.stag-landing__btn--primary:hover:not(:disabled),
.stag-auth__submit.stag-landing__btn--primary:focus:not(:disabled),
.stag-auth__submit.stag-landing__btn--primary:focus-visible:not(:disabled),
.stag-auth__submit.stag-landing__btn--primary:active:not(:disabled) {
	background: #ffd633;
	color: #0b0b0b;
	border-color: transparent;
	box-shadow: 0 8px 22px rgba(255, 196, 0, 0.35);
	transform: translateY(-1px);
}

.stag-auth button.stag-auth__submit.stag-landing__btn--primary:not(:disabled) {
	background: #ffc400;
	color: #0b0b0b;
}

.stag-auth button.stag-auth__submit.stag-landing__btn--primary:not(:disabled):hover,
.stag-auth button.stag-auth__submit.stag-landing__btn--primary:not(:disabled):focus,
.stag-auth button.stag-auth__submit.stag-landing__btn--primary:not(:disabled):focus-visible,
.stag-auth button.stag-auth__submit.stag-landing__btn--primary:not(:disabled):active {
	background: #ffd633;
	color: #0b0b0b;
}

.stag-auth__submit:disabled,
.stag-auth__submit:disabled:hover,
.stag-auth__submit:disabled:focus,
.stag-auth__submit:disabled:focus-visible {
	background: #3a3a3a;
	color: #737373;
	border-color: transparent;
	box-shadow: none;
	cursor: not-allowed;
	opacity: 1;
	transform: none;
}

.stag-auth__notice {
	margin-bottom: 1.25rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.stag-auth__notice ul {
	margin: 0;
	padding-left: 1.1rem;
}

.stag-auth__notice li + li {
	margin-top: 0.35rem;
}

.stag-auth__notice--error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(248, 113, 113, 0.35);
	color: #fecaca;
}

.stag-auth__notice--success {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(74, 222, 128, 0.35);
	color: #bbf7d0;
}

.stag-auth__notice--success p {
	margin: 0;
}

.stag-auth__footer-link {
	margin: 1.25rem 0 0;
	text-align: center;
	font-size: 0.88rem;
	color: #9ca3af;
}

.stag-auth__footer-link a {
	color: #ffc400;
	font-weight: 600;
	text-decoration: none;
}

.stag-auth__footer-link a:hover,
.stag-auth__footer-link a:focus-visible {
	text-decoration: underline;
}

body.stagiaire-auth-page {
	margin: 0;
	padding: 0;
	background: #0b0b0b;
}

body.stagiaire-auth-page .entry-content,
body.stagiaire-auth-page .site-content,
body.stagiaire-auth-page .content-area {
	max-width: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 560px) {
	.stag-auth__card {
		padding: 1.5rem 1.15rem;
	}

	.stag-auth__field-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.stag-auth__back {
		font-size: 0.8rem;
	}
}

/* Modal — política de privacidad */

body.stag-auth-modal-open {
	overflow: hidden;
}

.stag-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
}

.stag-auth-modal[hidden] {
	display: none;
}

.stag-auth-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(8px);
	animation: stag-auth-modal-fade-in 0.25s ease-out;
}

.stag-auth-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: min(88vh, 820px);
	border-radius: 20px;
	border: 1px solid rgba(255, 196, 0, 0.22);
	background: linear-gradient(165deg, rgba(28, 28, 28, 0.98), rgba(11, 11, 11, 0.99));
	box-shadow:
		0 28px 80px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.04) inset,
		0 0 48px rgba(255, 196, 0, 0.08);
	animation: stag-auth-modal-slide-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	outline: none;
	overflow: hidden;
}

.stag-auth-modal__dialog.is-positioned {
	position: fixed;
	z-index: 1;
	margin: 0;
}

.stag-auth-modal__header {
	position: relative;
	padding: 1.35rem 3rem 1rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 196, 0, 0.06), transparent);
	cursor: grab;
	user-select: none;
	touch-action: none;
}

.stag-auth-modal__header.is-dragging {
	cursor: grabbing;
}

.stag-auth-modal__eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffc400;
}

.stag-auth-modal__title {
	margin: 0;
	font-size: clamp(1.15rem, 3vw, 1.45rem);
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

.stag-auth-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: #d1d5db;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.stag-auth-modal__close:hover,
.stag-auth-modal__close:focus-visible {
	border-color: rgba(255, 196, 0, 0.45);
	background: rgba(255, 196, 0, 0.1);
	color: #ffc400;
	outline: none;
}

.stag-auth-modal__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 1.25rem 1.5rem;
	color: #d1d5db;
	font-size: 0.9rem;
	line-height: 1.65;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 196, 0, 0.35) transparent;
}

.stag-auth-modal__body::-webkit-scrollbar {
	width: 6px;
}

.stag-auth-modal__body::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(255, 196, 0, 0.35);
}

.stag-auth-modal__loading,
.stag-auth-modal__error {
	margin: 0;
	text-align: center;
	color: #9ca3af;
}

.stag-auth-modal__error {
	color: #fecaca;
}

.stag-rgpd-embed > :first-child {
	margin-top: 0;
}

.stag-rgpd-embed > :last-child {
	margin-bottom: 0;
}

.stag-rgpd-embed h2,
.stag-rgpd-embed h3,
.stag-rgpd-embed h4 {
	margin: 1.35rem 0 0.65rem;
	color: #ffffff;
	font-weight: 700;
	line-height: 1.3;
}

.stag-rgpd-embed p,
.stag-rgpd-embed ul,
.stag-rgpd-embed ol {
	margin: 0 0 0.85rem;
}

.stag-rgpd-embed ul,
.stag-rgpd-embed ol {
	padding-left: 1.25rem;
}

.stag-rgpd-embed a {
	color: #ffc400;
}

.stag-rgpd-embed a:hover,
.stag-rgpd-embed a:focus-visible {
	color: #ffe066;
}

.stag-auth-modal__footer {
	padding: 1rem 1.5rem 1.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.2);
}

.stag-auth-modal__accept {
	width: 100%;
}

@keyframes stag-auth-modal-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes stag-auth-modal-slide-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 560px) {
	.stag-auth-modal {
		padding: 1rem;
	}

	.stag-auth-modal__dialog {
		max-height: 90vh;
	}

	.stag-auth-modal__header {
		padding-right: 3.25rem;
	}

	.stag-auth-modal__body {
		padding: 1rem 1.15rem;
	}

	.stag-auth-modal__footer {
		padding: 0.85rem 1.15rem 1.15rem;
	}
}
