/* login.css : page de connexion, contact et envoi de fichiers (cartes sur fond vert).
   La palette, les polices et les boutons sont dans base.css (charge avant). */
body { display: flex; flex-direction: column; padding-bottom: 1.5rem; }
body.login-page { padding-top: 1.5rem; }

.login-card {
  width: calc(100% - 1.5rem); max-width: 27rem; margin-top: auto; margin-bottom: auto; margin-left: auto; margin-right: auto;
  padding: 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}
.login-card h1 { font-size: 1.6rem; margin: 0 0 .25rem; color: var(--ink); }
.login-sub { font-size: 1rem; color: var(--muted); margin: 0 0 1.25rem; }
label { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.optional { font-size: .85rem; font-weight: 400; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem; min-height: 3rem; border: 2px solid var(--field-border);
  border-radius: 8px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid var(--gold); outline-offset: 0; box-shadow: none; }
textarea { resize: vertical; min-height: 7.5rem; line-height: 1.45; }
.counter { display: block; margin-top: .25rem; text-align: right; font-size: .85rem; font-weight: 400; color: var(--muted); }
.counter.near-limit { color: var(--warn); font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* piege a robots : invisible pour les humains */
.login-help { margin: 1rem 0 0; font-size: .95rem; text-align: center; }
.login-help a { display: inline-block; padding: .6rem .5rem; color: var(--link); font-weight: 600; }
.login-done h2 { font-size: 1.3rem; margin: 0 0 .5rem; color: var(--ink); }
.login-done p { font-size: 1rem; color: var(--muted); margin: 0 0 .5rem; }
#captchaBox { margin: .25rem 0 .75rem; min-height: 4px; max-width: 100%; overflow-x: auto; }
.login-note { margin: 0 0 1rem; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.login-error { min-height: 1.5rem; margin: 0 0 .75rem; font-size: 1rem; color: var(--warn); font-weight: 700; }

.login-card button[type="submit"], .login-done button { width: 100%; }
/* petits boutons dans la carte (liste de fichiers) : secondaires, pas pleine largeur */
.login-card button.small-btn { width: auto; min-height: 2.75rem; padding: .3rem .9rem; background: var(--paper); color: var(--green); border-color: var(--green); }
.login-card button.small-btn:hover:not(:disabled) { background: var(--paper-2); color: var(--green-dark); border-color: var(--green); }
.login-done button { margin-top: .5rem; }

/* ---- page d'envoi de fichiers ---- */
.upload-card { max-width: 36rem; }
.dropzone {
  margin: .25rem 0 .5rem; padding: 1.5rem 1rem; text-align: center; border: 3px dashed var(--field-border); border-radius: var(--radius);
  background: var(--paper-2); cursor: pointer; min-height: 8rem; display: flex; flex-direction: column; justify-content: center;
}
.dropzone:hover, .dropzone:focus, .dropzone.drag-over { border-color: var(--green); background: #E7EFE5; outline: none; }
.dropzone:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dropzone p { margin: 0; }
.dropzone-main { font-size: 1.1rem; }
.dropzone-link { color: var(--link); text-decoration: underline; font-weight: 700; }
.dropzone-hint { margin-top: .25rem; font-size: .9rem; color: var(--muted); }
.file-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.file-item { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); }
.file-item:first-child { border-top: none; }
.file-name { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.file-meta { grid-column: 1; font-size: .85rem; color: var(--muted); }
.file-status { grid-column: 1; font-size: .95rem; }
.file-status.error { color: var(--warn); font-weight: 700; }
.file-status.ok { color: var(--ok); font-weight: 700; }
.file-item progress { width: 100%; height: .6rem; }
.file-item .small-btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
#sendHint { margin: .5rem 0 0; text-align: center; }
