body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #EDEDED;
    position: relative;
    overflow-x: hidden;
}

/* Background motif (2026-08-10): subtle network/node graphic behind the card, corner-anchored,
   low opacity so it never competes with the form. Lives at the webDoctor docroot root (NOT
   param/{site}/), same generic non-per-client location confirmed in the prior diagnosis --
   this cannot resolve differently per client and will never reach findel/drfindel. */
body::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 480px;
    height: 407px;
    background-image: url('motif-network.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

/* Language dropdown (2026-08-09) -- native <select>, "expandable list" per spec, not a fixed
   set of always-visible options. Fixed top-right so it doesn't disturb the centered card. */
.lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2;
}
.lang-select {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #D9DBE0;
    background-color: #FFFFFF;
    color: var(--primarycolor);
    cursor: pointer;
}

/* Card unification pass (2026-08-10): matches app/public_token/home/main.css's .login-container
   shape/spacing/shadow exactly (border-radius, padding, box-shadow, max-width). Colors
   deliberately untouched -- h2/form label/form input/.forgot-password already pull from
   var(--primarycolor)/var(--secondarycolor)/var(--tertiarycolor) (shared webDoctor/theme.css,
   not edited here), and form button's own #2046E5/#1538c0 were already hardcoded before this
   pass -- neither is changed, only shape/spacing/typography-size/shadow per scope. */
.page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    z-index: 1;
}
.login-container {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 36px 32px 32px;
    box-shadow: 0 4px 24px rgba(51, 62, 82, 0.08);
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.logo {
    width: 275px;
    margin-bottom: 20px;
}

h2 {
    color: var(--primarycolor);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

form input,
form button,
form label {
    width: calc(100% - 20px); /* Ajuste la largeur en fonction du padding */
    box-sizing: border-box;   /* Assure que padding et bordures ne dépassent pas */
}
form label {
    font-weight: bold;
    text-align: left;
    margin: 10px 0px 0px 5px;
    color: var(--primarycolor);
}
form input {
    padding: 10px;
    margin: 0px 0px 10px;
    border-radius: 2px;
    border: 1px solid var(--tertiarycolor);
    background-color: var(--secondarycolor);
}

form input::placeholder {
    color: var(--tertiarycolor);
}

form button {
    padding: 14px;
    background-color: #2046E5;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 20px -4px rgba(32, 70, 229, 0.25);
}

form button:hover {
    background-color: #1538c0;
}

.forgot-password {
    display: block;
    margin-top: 10px;
    color: var(--primarycolor);
    text-decoration: none;
    font-size: 0.9em;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Footer (2026-08-10): NEW element -- devdoctor's login screen had no footer before this pass.
   Rules reused verbatim from app/public_token/home/main.css's .page-footer/.footer-inner/
   .footer-logo-area/.footer-logo/.footer-brand -- same visual pattern, minus .footer-disclaimer
   (that GDPR/HDS sentence is questionnaire-specific copy, not reused here per instruction). */
.page-footer {
    padding: 14px 20px;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
    position: relative;
    z-index: 1;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo {
    height: 36px;
    width: auto;
}
.footer-brand {
    font-size: 0.85rem;
    color: #666;
}
/* ---------- devdoctor/devmobile ONLY -- .pl-devsite, added to <body> by this page's own main.js.
   Base rules above are shared by all 4 hostnames and are left untouched: findel/drfindel keep
   their exact current look. Design system (2026-09-03): the card, the two inputs, the label, the
   button (Level 1) and the title (h2) are styled by the shared param/theme/ui_base.css that
   class/page.class.php inlines; only page-specific layout remains here. ---------- */
.pl-devsite body,
body.pl-devsite {
	background: var(--ui-page-bg) !important;
	font-family: var(--ui-font-family);
}
.pl-devsite .login-container {
	width: 100%;
	max-width: 420px;
	text-align: left;
}
.pl-devsite .login-container .logo {
	display: block;
	width: 100%;
	max-width: 275px;
	margin: 0 auto var(--ui-space-card-gap);
}
.pl-devsite .login-container h2 {
	text-align: center;
	margin-bottom: var(--ui-space-card-gap);
}
.pl-devsite form input,
.pl-devsite form button,
.pl-devsite form label {
	width: 100%;
}
.pl-devsite form label {
	margin: 0 0 6px;
}
.pl-devsite form input {
	margin: 0 0 var(--ui-space-field-gap);
}
.pl-devsite form button {
	margin-top: 4px;
}
.pl-devsite .forgot-password {
	display: block;
	margin-top: var(--ui-space-card-gap);
	text-align: center;
	font-size: var(--ui-small-size);
	color: var(--ui-brand-primary);
}
.pl-devsite .lang-select {
	font-family: var(--ui-font-family);
	font-size: var(--ui-small-size);
	border: 1px solid var(--ui-border-strong);
	border-radius: var(--ui-radius-button);
	background: var(--ui-surface);
	color: var(--ui-text-primary);
}
.pl-devsite .page-footer {
	border-top: 1px solid var(--ui-border);
	background: var(--ui-surface);
}
.pl-devsite .footer-brand {
	font-family: var(--ui-font-family);
	font-size: var(--ui-small-size);
	color: var(--ui-text-muted);
}
.pl-devsite .page-main {
	padding: var(--ui-space-page-pad) var(--ui-space-card-gap);
}
/* Stage 2 (2026-09-03): the decorative corner motif (body::before, right:-60px) made the document
   60px wider than the viewport -- a horizontal scrollbar on the very first screen. Pinned inside
   the edge on devsite; findel/drfindel keep the base rule. */
body.pl-devsite::before {
	top: 0;
	right: 0;
}
