Files
xamxam/app/public/assets/css/form.css
Pontoporeia a2cba6d3c0 feat: prevent duplicate TFE submissions with logging and user feedback
- Add DuplicateThesisException (typed, carries existing thesis metadata)
- Add Database::findDuplicateThesis(): matches on year + author + normalised
  title (exact, prefix, Levenshtein ≤10% of longer string)
- ThesisCreateController::submit() runs duplicate check before any DB write
  and throws DuplicateThesisException on match
- AppLogger::logDuplicate() writes status=duplicate entries to the JSON-lines
  log for audit purposes
- App::flash/consumeFlash extended to support 'warning' flash type
- admin/actions/formulaire.php: catches DuplicateThesisException, logs it,
  flashes an HTML warning toast with a clickable link to the existing thesis,
  and repopulates the form fields
- partage/index.php: same catch block; surfaces a plain-text flash-warning
  banner on the student form with identifier, title, and year of the match;
  form is repopulated via session
- toast.php: renders toast--warning variant
- admin.css: .toast--warning + link colour rules
- form.css: .flash-warning style for the partage form
2026-05-05 11:04:52 +02:00

1119 lines
27 KiB
CSS

/* ============================================================
FORM — TFE submission form
Shared between admin add/edit pages and the student partage form.
Depends on variables.css (loaded via common.css).
============================================================ */
/* ── Field rows & layout ────────────────────────────────────────────────── */
.admin-form {
display: flex;
flex-direction: column;
gap: 0;
}
.admin-form > div:not(.admin-form-footer) {
display: grid;
grid-template-columns: 260px 1fr;
align-items: start;
border-top: 1px solid var(--border-primary);
padding: var(--space-xs) 0;
gap: var(--space-s);
}
.admin-form > div:not(.admin-form-footer):last-of-type {
border-bottom: 1px solid var(--border-primary);
}
.admin-form > div:not(.admin-form-footer) > label,
.admin-form > div:not(.admin-form-footer) > span.admin-row-label {
font-size: var(--step--1);
padding-top: var(--space-2xs);
font-weight: 400;
}
/* ── Inputs, selects, textareas ─────────────────────────────────────────── */
.admin-form
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
[type="hidden"]
):not([type="submit"]),
.admin-form select,
.admin-form textarea,
.admin-inline-form input[type="text"],
.admin-inline-form input[type="number"],
.admin-inline-form select {
width: 100%;
background: transparent;
border: none;
border-bottom: 1px solid var(--border-primary);
font-size: var(--step--1);
font-family: inherit;
padding: var(--space-3xs) 0;
border-radius: 0;
transition: border-color 0.15s;
-webkit-appearance: none;
appearance: none;
}
.admin-form
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
[type="hidden"]
):not([type="submit"]):focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-inline-form input:focus,
.admin-inline-form select:focus {
outline: none;
border-bottom-color: var(--accent-primary);
}
.admin-form input::placeholder,
.admin-form textarea::placeholder {
font-size: var(--step--1);
color: var(--text-tertiary);
}
.admin-form textarea {
resize: vertical;
min-height: 100px;
line-height: 1.5;
}
/* Select custom arrow */
.admin-form select,
.admin-inline-form select {
cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0 center;
padding-right: 1.2rem;
}
/* ── Required-field indicators ──────────────────────────────────────────── */
.admin-form
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
[type="hidden"]
):not([type="submit"]):required,
.admin-form select:required,
.admin-form textarea:required {
border-bottom-style: dashed;
}
.admin-form
div:has(
input:required:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"])) > label,
.admin-form div:has(select:required) > label,
.admin-form div:has(textarea:required) > label {
font-weight: 600;
}
/* Asterisk appended to labels of required fields */
label:has(+ input:required:not([type="hidden"]))::after,
label:has(+ select:required)::after,
label:has(+ textarea:required)::after,
label:has(+ div > input:required)::after {
content: " *";
color: var(--error, #c00);
}
/* "* Champs obligatoires" note */
.required-note {
font-size: var(--step--2);
color: var(--text-secondary);
margin-bottom: var(--space-xs);
}
.required-note .asterisk {
color: var(--error, #c00);
}
/* ── File inputs ────────────────────────────────────────────────────────── */
.admin-file-input {
display: flex;
flex-direction: column;
gap: var(--space-3xs);
}
.admin-file-input input[type="file"] {
font-size: var(--step--1);
background: transparent;
border: 1px dashed var(--border-primary);
padding: var(--space-3xs) var(--space-2xs);
border-radius: 3px;
cursor: pointer;
font-family: inherit;
}
.admin-file-input input[type="file"]:hover {
border-color: var(--accent-primary);
}
.admin-file-hint {
display: block;
margin-top: var(--space-2xs);
}
/* small base styles live in common.css */
/* ── Checkbox groups (languages, formats) ───────────────────────────────── */
.admin-body fieldset.admin-checkbox-group,
.student-body fieldset.admin-checkbox-group {
border: none;
padding: 0;
margin: 0;
background: transparent;
border-radius: 0;
}
.admin-body fieldset.admin-checkbox-group > ul,
.student-body fieldset.admin-checkbox-group > ul {
list-style: none;
margin: 0;
padding-top: var(--space-3xs);
display: flex;
flex-direction: column;
gap: var(--space-3xs);
}
.admin-body fieldset.admin-checkbox-group > ul > li,
.student-body fieldset.admin-checkbox-group > ul > li {
display: contents;
}
.admin-checkbox-label {
display: flex;
align-items: center;
gap: var(--space-2xs);
font-size: var(--step--1);
cursor: pointer;
}
.admin-checkbox-label input[type="checkbox"] {
accent-color: var(--accent-primary);
width: 14px;
height: 14px;
cursor: pointer;
}
/* ── Fieldsets & legends ────────────────────────────────────────────────── */
/* Base fieldset/legend styles live in common.css */
.admin-body fieldset,
.student-body fieldset {
margin: var(--space-2xs) 0 var(--space-s);
}
/* ── Form group (checkbox inline inside .admin-form) ────────────────────── */
.admin-form-group {
display: flex;
flex-direction: column;
gap: var(--space-3xs);
}
/* ── Jury fieldset ──────────────────────────────────────────────────────── */
.admin-body fieldset fieldset.admin-jury-lecteurs,
.student-body fieldset fieldset.admin-jury-lecteurs {
border: none;
padding: 0;
margin: var(--space-xs) 0 0;
background: transparent;
}
.admin-body fieldset fieldset.admin-jury-lecteurs > legend,
.student-body fieldset fieldset.admin-jury-lecteurs > legend {
font-size: var(--step--2);
font-weight: 600;
letter-spacing: 0.03em;
text-transform: uppercase;
color: var(--text-tertiary);
padding: 0;
margin-bottom: var(--space-2xs);
}
.admin-jury-row {
display: flex;
gap: var(--space-xs);
flex-wrap: wrap;
}
.admin-jury-list {
display: flex;
flex-direction: column;
gap: var(--space-2xs);
}
.admin-jury-entry {
display: flex;
align-items: center;
gap: var(--space-xs);
}
.admin-jury-ext {
white-space: nowrap;
}
.admin-btn-remove {
background: none;
border: 1px solid var(--border-primary);
color: var(--text-tertiary);
border-radius: 3px;
padding: var(--space-3xs) var(--space-2xs);
min-height: 2rem;
font-size: var(--step--2);
line-height: 1;
display: inline-flex;
align-items: center;
cursor: pointer;
transition:
border-color 0.15s,
color 0.15s;
}
.admin-btn-remove:hover {
border-color: var(--error);
color: var(--error);
}
/* ── Add / edit page header ─────────────────────────────────────────────── */
.thesis-add-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--space-m);
margin-bottom: var(--space-m);
border-bottom: 1px solid var(--border-primary);
padding-bottom: var(--space-xs);
}
.thesis-add-header h1 {
margin: 0;
font-size: var(--step-1);
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.mode-toggle {
font-size: var(--step--1);
color: var(--text-secondary);
text-decoration: none;
white-space: nowrap;
border: 1px solid var(--border-primary);
border-radius: 3px;
padding: var(--space-3xs) var(--space-xs);
transition: color 0.15s, border-color 0.15s;
}
.mode-toggle:hover {
color: var(--accent-primary);
border-color: var(--accent-primary);
}
.mode-toggle--back {
color: var(--accent-blue);
border-color: var(--blue-muted-border, var(--border-primary));
}
/* ── Submit / form footer ───────────────────────────────────────────────── */
.form-footer {
margin-top: var(--space-l);
}
.form-footer button {
padding: var(--space-2xs) var(--space-l);
background: var(--accent-primary);
color: var(--accent-foreground);
border: none;
border-radius: 3px;
font-size: var(--step--1);
font-family: inherit;
cursor: pointer;
letter-spacing: 0.04em;
transition: background 0.15s;
}
.form-footer button:hover {
background: var(--accent-secondary);
}
/* ── Flash messages ─────────────────────────────────────────────────────── */
.flash-error,
.flash-warning,
.flash-success {
padding: var(--space-xs) var(--space-s);
border-radius: 4px;
font-size: var(--step--1);
margin-bottom: var(--space-s);
border-left: 3px solid;
}
.flash-error {
background: var(--accent-muted);
border-color: var(--error);
color: var(--text-primary);
}
.flash-success {
background: var(--success-muted-bg);
border-color: var(--success);
color: var(--text-primary);
}
.flash-warning {
background: var(--warning-muted-bg, rgba(251,202,81,.12));
border-color: var(--warning-muted-border, rgba(251,202,81,.35));
color: var(--text-primary);
}
/* ── Share link badge ───────────────────────────────────────────────────── */
.share-badge {
display: inline-block;
padding: var(--space-3xs) var(--space-xs);
background: var(--blue-muted-bg);
border: 1px solid var(--blue-muted-border, var(--border-primary));
border-radius: 3px;
font-size: var(--step--2);
margin-bottom: var(--space-xs);
}
/* ── Licence / degrees-of-openness block ────────────────────────────────── */
.licence-explanation {
background: var(--bg-secondary);
border-left: 4px solid var(--border-secondary, var(--border-primary));
padding: var(--space-m);
margin: 0;
}
.licence-explanation legend {
font-size: var(--step--1);
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-secondary);
padding: 0 var(--space-2xs);
}
.licence-info h3 {
margin-top: var(--space-m);
font-size: var(--step-0);
}
.licence-degree {
margin: var(--space-s) 0;
padding: var(--space-s);
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: 4px;
}
.licence-degree h4 {
margin: 0 0 var(--space-2xs);
font-size: var(--step--1);
font-weight: 600;
}
.licence-note {
color: var(--text-secondary);
font-size: var(--step--2);
margin-top: var(--space-2xs);
}
.licence-generalites {
margin-top: var(--space-m);
}
.licence-generalites h3 {
font-size: var(--step-0);
margin-bottom: var(--space-xs);
}
/* ── Student-mode layout ────────────────────────────────────────────────── */
/* Standalone page (no admin header/footer): restore scrollability that
common.css removes via overflow:hidden on html,body. */
.student-body {
display: flex;
flex-direction: column;
min-height: 100%;
overflow-y: auto;
}
.student-body main {
max-width: 720px;
padding: var(--space-l) var(--space-l) var(--space-2xl);
width: 100%;
margin-inline: auto;
}
/* ── Share-link error page ──────────────────────────────────────────────── */
.share-error {
max-width: 500px;
margin: 5rem auto;
padding: var(--space-xl);
text-align: center;
background: var(--bg-primary);
border: 2px solid var(--error);
border-radius: 8px;
}
.share-error h1 {
color: var(--error);
font-size: var(--step-1);
margin-bottom: var(--space-s);
}
.share-error p {
font-size: var(--step-0);
color: var(--text-secondary);
margin-bottom: var(--space-m);
}
.share-error a {
display: inline-block;
padding: var(--space-2xs) var(--space-m);
background: var(--text-primary);
color: var(--bg-primary);
text-decoration: none;
border-radius: 4px;
transition: opacity 0.15s;
}
.share-error a:hover {
opacity: 0.8;
}
/* ── Password gate page ─────────────────────────────────────────────────── */
.password-gate {
max-width: 400px;
margin: 4rem auto;
padding: var(--space-l);
text-align: center;
}
.password-gate h1 {
margin-bottom: var(--space-m);
}
.password-gate input[type="password"] {
width: 100%;
padding: var(--space-xs);
margin: var(--space-2xs) 0 var(--space-s);
font-size: var(--step--1);
font-family: inherit;
border: 1px solid var(--border-primary);
border-radius: 3px;
background: var(--bg-primary);
color: var(--text-primary);
}
.password-gate input[type="password"]:focus {
outline: none;
border-color: var(--accent-primary);
}
.password-gate button {
padding: var(--space-xs) var(--space-l);
font-size: var(--step--1);
font-family: inherit;
cursor: pointer;
background: var(--accent-primary);
color: var(--accent-foreground);
border: none;
border-radius: 3px;
transition: background 0.15s;
}
.password-gate button:hover {
background: var(--accent-secondary);
}
.password-error {
color: var(--error);
margin-bottom: var(--space-s);
font-size: var(--step--1);
}
/* ── Live file-input preview (.file-preview-list) ──────────────────────── */
.file-preview-list {
display: flex;
flex-wrap: wrap;
gap: var(--space-xs);
margin-top: var(--space-2xs);
}
.file-preview-list:empty {
display: none;
}
.fp-item {
display: flex;
align-items: center;
gap: var(--space-2xs);
padding: var(--space-3xs) var(--space-xs);
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 4px;
min-width: 0;
max-width: 260px;
}
.fp-thumb {
width: 48px;
height: 48px;
object-fit: cover;
border-radius: 3px;
flex-shrink: 0;
}
.fp-icon {
font-size: 1.6rem;
line-height: 1;
flex-shrink: 0;
width: 48px;
text-align: center;
}
.fp-meta {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.fp-name {
font-size: var(--step--2);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 180px;
display: block;
}
.fp-size {
font-size: var(--step--2);
color: var(--text-tertiary);
}
/* ── TFE file upload queue (.tfe-file-queue) ────────────────────────────── */
.admin-files-fieldgroup {
display: flex;
flex-direction: column;
gap: var(--space-3xs);
}
.tfe-file-picker {
font-size: var(--step--1);
background: transparent;
border: 1px dashed var(--border-primary);
padding: var(--space-3xs) var(--space-2xs);
border-radius: 3px;
cursor: pointer;
font-family: inherit;
width: 100%;
}
.tfe-file-picker:hover {
border-color: var(--accent-primary);
}
.sortable-list {
list-style: none;
margin: var(--space-2xs) 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: var(--space-2xs);
}
/* New-file queue items */
.tfe-file-queue {
min-height: 0;
}
.tfe-queue-empty {
font-size: var(--step--2);
color: var(--text-tertiary);
margin: var(--space-3xs) 0 0;
}
.tfe-file-queue:not(:empty) + .tfe-queue-empty {
display: none;
}
.fq-item {
display: flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-3xs) var(--space-xs);
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 4px;
min-width: 0;
}
.fq-drag-handle,
.admin-file-drag-handle {
cursor: grab;
color: var(--text-tertiary);
font-size: 1.1rem;
line-height: 1;
padding: 0 var(--space-3xs);
flex-shrink: 0;
user-select: none;
}
.fq-drag-handle:active,
.admin-file-drag-handle:active {
cursor: grabbing;
}
.fq-ghost,
.sortable-ghost {
opacity: 0.4;
background: var(--accent-muted, #f0f0f0);
}
.fq-icon {
font-size: 1.3rem;
line-height: 1;
flex-shrink: 0;
width: 2rem;
text-align: center;
}
.fq-info {
display: flex;
flex-direction: column;
gap: var(--space-3xs);
flex: 1;
min-width: 0;
}
.fq-name {
font-size: var(--step--1);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.fq-size {
font-size: var(--step--2);
color: var(--text-tertiary);
}
.fq-label,
.admin-file-label-input {
font-size: var(--step--2);
font-family: inherit;
background: transparent;
border: none;
border-bottom: 1px solid var(--border-primary);
padding: 2px 0;
width: 100%;
color: var(--text-primary);
border-radius: 0;
}
.fq-label:focus,
.admin-file-label-input:focus {
outline: none;
border-bottom-color: var(--accent-primary);
}
.fq-remove {
flex-shrink: 0;
}
/* ── Existing-files list (edit form) ─────────────────────────────────────── */
.admin-file-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.admin-file-list-item {
display: flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-3xs) var(--space-xs);
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 4px;
min-width: 0;
}
.admin-file-icon-col {
font-size: 1.2rem;
line-height: 1;
flex-shrink: 0;
width: 1.8rem;
text-align: center;
}
.admin-file-info {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
min-width: 0;
}
.admin-file-name {
font-size: var(--step--1);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--text-primary);
}
a.admin-file-name {
text-decoration: underline;
text-underline-offset: 2px;
}
a.admin-file-name:hover {
color: var(--accent-primary);
}
.admin-file-meta-row {
display: flex;
align-items: center;
gap: var(--space-2xs);
flex-wrap: wrap;
}
.admin-file-type-badge {
font-size: var(--step--2);
padding: 1px 5px;
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: 3px;
color: var(--text-secondary);
white-space: nowrap;
}
.admin-file-size {
font-size: var(--step--2);
color: var(--text-tertiary);
}
.admin-file-delete {
flex-shrink: 0;
margin-left: auto;
white-space: nowrap;
}
/* ── Recap file list (admin & partage recapitulatif) ────────────────────── */
.recap-file-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.recap-file-item {
display: flex;
align-items: center;
gap: var(--space-s);
padding: var(--space-xs) var(--space-s);
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 4px;
}
.recap-file-thumb-link {
flex-shrink: 0;
}
.recap-file-thumb {
width: 64px;
height: 64px;
object-fit: cover;
border-radius: 3px;
display: block;
}
.recap-file-icon {
font-size: 2rem;
line-height: 1;
width: 64px;
text-align: center;
flex-shrink: 0;
}
.recap-file-meta {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--space-2xs) var(--space-s);
min-width: 0;
}
.recap-file-name {
font-size: var(--step--1);
font-weight: 500;
color: var(--text-primary);
word-break: break-all;
}
a.recap-file-name {
text-decoration: underline;
text-underline-offset: 2px;
}
a.recap-file-name:hover {
color: var(--accent-primary);
}
.recap-file-type-badge {
font-size: var(--step--2);
padding: 1px 6px;
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: 3px;
color: var(--text-secondary);
white-space: nowrap;
}
.recap-file-size,
.recap-file-date {
font-size: var(--step--2);
color: var(--text-tertiary);
white-space: nowrap;
}
/* ── Partage recap page ─────────────────────────────────────────────────── */
.partage-recap {
display: flex;
flex-direction: column;
gap: var(--space-l);
}
.recap-section {
border-top: 1px solid var(--border-primary);
padding-top: var(--space-m);
}
.recap-section h2 {
font-size: var(--step-0);
font-weight: 600;
margin: 0 0 var(--space-s);
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-secondary);
}
.recap-dl {
display: grid;
grid-template-columns: 180px 1fr;
gap: var(--space-2xs) var(--space-s);
margin: 0;
}
.recap-dl dt {
font-size: var(--step--1);
font-weight: 600;
color: var(--text-secondary);
padding-top: 2px;
}
.recap-dl dd {
font-size: var(--step--1);
margin: 0;
color: var(--text-primary);
}
/* ── Thanks page ────────────────────────────────────────────────────────── */
.thanks-student-page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 60vh;
text-align: center;
}
.thanks-success,
.thanks-error {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-m);
max-width: 520px;
}
.thanks-success h1,
.thanks-error h1 {
font-size: var(--step-3);
margin: 0;
letter-spacing: 0.06em;
}
.thanks-message {
font-size: var(--step-0);
color: var(--text-primary);
margin: 0;
line-height: 1.6;
}
.thanks-error p {
font-size: var(--step-0);
color: var(--text-secondary);
margin: 0;
}
.btn-new-form {
display: inline-flex;
align-items: center;
gap: var(--space-2xs);
padding: var(--space-m) var(--space-2xl);
background: var(--accent-primary);
color: var(--accent-foreground);
border: none;
border-radius: 6px;
font-size: var(--step-0);
font-weight: 600;
font-family: inherit;
text-decoration: none;
cursor: pointer;
letter-spacing: 0.04em;
transition: background 0.15s, transform 0.15s;
margin-top: var(--space-s);
}
.btn-new-form:hover {
background: var(--accent-secondary);
transform: translateY(-1px);
}
/* ── Form help blocks ────────────────────────────────────────────────────── */
.form-help-block {
background: color-mix(in srgb, var(--accent-primary) 8%, transparent);
border-left: 3px solid var(--accent-primary);
border-radius: 0 6px 6px 0;
padding: var(--space-s) var(--space-m);
margin-bottom: var(--space-s);
font-size: var(--step--1);
color: var(--text-primary);
line-height: 1.6;
}
.form-help-block > *:first-child { margin-top: 0; }
.form-help-block > *:last-child { margin-bottom: 0; }
.form-help-block p { margin: 0 0 var(--space-xs); }
.form-help-block ul,
.form-help-block ol { margin: 0 0 var(--space-xs); padding-left: var(--space-m); }
.form-help-block li { margin-bottom: var(--space-3xs); }
.form-help-block a { color: var(--accent-primary); }
/* ── E-mail retry page ───────────────────────────────────────────────────── */
.partage-retry-email {
display: flex;
flex-direction: column;
gap: var(--space-l);
max-width: 600px;
margin: 0 auto;
}
.retry-email-section {
border-top: 1px solid var(--border-primary);
padding-top: var(--space-m);
display: flex;
flex-direction: column;
gap: var(--space-m);
}
.retry-email-section h2 {
font-size: var(--step-0);
font-weight: 600;
margin: 0;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-secondary);
}
.retry-smtp-detail {
display: block;
margin-top: var(--space-2xs);
font-size: var(--step--2);
color: var(--text-secondary);
word-break: break-all;
}
.retry-email-form {
display: flex;
flex-direction: column;
gap: var(--space-m);
}
.retry-email-form .field-wrap {
display: flex;
flex-direction: column;
gap: var(--space-2xs);
}
.retry-email-form label {
font-size: var(--step--1);
font-weight: 600;
}
.retry-email-form input[type="email"] {
padding: var(--space-xs) var(--space-s);
border: 1px solid var(--border-primary);
border-radius: 4px;
font-size: var(--step-0);
width: 100%;
box-sizing: border-box;
}
.retry-email-form input.input-error {
border-color: var(--error, #c00);
}
.retry-email-actions {
display: flex;
gap: var(--space-s);
flex-wrap: wrap;
}
.btn-primary {
padding: var(--space-xs) var(--space-m);
background: var(--accent-primary);
color: #fff;
border: none;
border-radius: 4px;
font-size: var(--step-0);
cursor: pointer;
font-weight: 600;
}
.btn-primary:hover {
background: var(--accent-secondary, var(--accent-primary));
transform: translateY(-1px);
}
.btn-secondary {
padding: var(--space-xs) var(--space-m);
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border-primary);
border-radius: 4px;
font-size: var(--step-0);
cursor: pointer;
}
.btn-secondary:hover {
background: color-mix(in srgb, var(--text-secondary) 8%, transparent);
}