/*
 * Public sign-up page (/new-account-registration) - layout/register.php + Accounts/register.php.
 * Built from the gestion mockup "maquette-creation-compte" (CMS page 1192).
 * Plain colour values on purpose: the prod CSS minifier drops any declaration using var().
 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.register-body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1f2a44;
    background: #f4f8fd;
    background-image: linear-gradient(135deg, #f7faff 0%, #eaf3fd 55%, #f2f9f0 100%);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}
a { color: #1366e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* soft background shapes */
.rg-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.rg-blob-1 { width: 720px; height: 720px; top: -260px; left: 30%; background: radial-gradient(circle, rgba(196, 222, 252, 0.55) 0%, rgba(196, 222, 252, 0) 70%); }
.rg-blob-2 { width: 620px; height: 620px; bottom: -260px; left: -180px; background: radial-gradient(circle, rgba(186, 214, 250, 0.5) 0%, rgba(186, 214, 250, 0) 70%); }
.rg-blob-3 { width: 520px; height: 520px; bottom: -220px; right: -160px; background: radial-gradient(circle, rgba(200, 236, 170, 0.55) 0%, rgba(200, 236, 170, 0) 70%); }

.rg-page { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 28px 48px 56px; }

/* header */
.rg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.rg-logo img { display: block; width: 190px; height: auto; }
.rg-top-links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: #475569; }
.rg-top-links a { font-weight: 600; }
.rg-help { display: inline-flex; align-items: center; gap: 6px; color: #475569 !important; font-weight: 500 !important; }

.rg-icon { width: 20px; height: 20px; flex-shrink: 0; }
.rg-icon-sm { width: 16px; height: 16px; }
.rg-icon-xs { width: 13px; height: 13px; }

.rg-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: start; }

/* ---------- left: pitch ---------- */
.rg-eyebrow { margin: 8px 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #2a7fd1; }
.rg-title { margin: 0; font-size: 54px; line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; color: #0f1f4b; max-width: 620px; }
.rg-lead { margin: 18px 0 26px; font-size: 18px; line-height: 1.6; color: #475569; max-width: 560px; }

.rg-benefits {
    list-style: none; margin: 0 0 28px; padding: 18px 20px; max-width: 470px;
    background: #fff; border: 1px solid #e3e9f2; border-radius: 14px; box-shadow: 0 6px 20px rgba(15, 31, 75, 0.05);
    display: flex; flex-direction: column; gap: 16px;
}
.rg-benefits li { display: flex; align-items: flex-start; gap: 14px; }
.rg-benefits strong { display: block; font-size: 15.5px; font-weight: 600; color: #0f1f4b; }
.rg-benefits small { display: block; font-size: 14px; color: #64748b; margin-top: 2px; line-height: 1.45; }
.rg-ben-icon { width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rg-ben-icon .rg-icon { width: 18px; height: 18px; }
.rg-green { background: #dcf3e3; color: #22a04b; }
.rg-blue { background: #dce9fd; color: #1a6fe6; }
.rg-orange { background: #fdebd2; color: #e07b00; }

.rg-shot { margin: 0; max-width: 780px; }
.rg-shot img {
    display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #e3e9f2;
    box-shadow: 0 30px 60px rgba(15, 31, 75, 0.14), 0 2px 6px rgba(15, 31, 75, 0.06);
    transform: perspective(1600px) rotateY(6deg) rotateZ(-1.5deg); transform-origin: left center;
}
.rg-shot figcaption { margin-top: 14px; font-size: 14px; color: #64748b; }

/* ---------- right: card ---------- */
.rg-card {
    background: #fff; border-radius: 20px; padding: 34px 32px 28px;
    border: 1px solid #e8edf3; box-shadow: 0 24px 60px rgba(15, 31, 75, 0.09);
}
.rg-card-title { margin: 0 0 6px; font-size: 30px; line-height: 1.15; font-weight: 800; color: #0f1f4b; letter-spacing: -0.01em; }
.rg-card-sub { margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: #475569; }

.rg-form { display: flex; flex-direction: column; gap: 16px; }
.rg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rg-field label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 600; color: #1f2a44; }
.rg-req { color: #e11d48; }
.rg-opt { font-weight: 400; color: #64748b; }
.rg-help-text { margin: 6px 0 0; font-size: 13px; color: #64748b; }
.rg-help-text strong { color: #0f1f4b; overflow-wrap: anywhere; }

.rg-input-wrap { position: relative; display: block; }
.rg-input-wrap > .rg-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.rg-field input, .rg-field select, .rg-field textarea {
    width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d5dce6; border-radius: 8px;
    font: inherit; font-size: 15px; color: #0f1f4b; background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.rg-field textarea { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.rg-input-wrap > .rg-icon ~ input { padding-left: 44px; padding-right: 48px; }
.rg-field input::placeholder, .rg-field textarea::placeholder { color: #94a3b8; }
.rg-field input:focus, .rg-field select:focus, .rg-field textarea:focus { border-color: #1366e8; box-shadow: 0 0 0 4px rgba(19, 102, 232, 0.12); }
.rg-field input[readonly] { background: #f5f7fa; color: #475569; }
.rg-field select { cursor: pointer; }

/* space name + fixed ".espace.logicake.com" suffix */
.rg-suffix-wrap { display: flex; }
.rg-suffix-wrap input { border-radius: 8px 0 0 8px; min-width: 0; }
.rg-suffix { display: flex; align-items: center; padding: 0 12px; border: 1px solid #d5dce6; border-left: 0; border-radius: 0 8px 8px 0; background: #f5f7fa; color: #475569; font-size: 14px; white-space: nowrap; }

.rg-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
    border: 0; background: transparent; color: #64748b; cursor: pointer; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}
.rg-eye:hover, .rg-eye.rg-eye-on { color: #1366e8; background: #eef4fe; }

/* password rules + match */
.rg-rules { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: #64748b; }
.rg-rules li { display: inline-flex; align-items: center; gap: 6px; }
.rg-rules li .rg-icon { width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: #e2e8f0; color: #fff; stroke-width: 3; }
.rg-rules li.rg-ok { color: #15803d; }
.rg-rules li.rg-ok .rg-icon { background: #22a04b; }
.rg-rules.rg-rules-show li:not(.rg-ok) { color: #e11d48; }
.rg-match { margin: 6px 0 0; font-size: 13px; min-height: 0; }
.rg-match-ok { color: #15803d; }
.rg-match-ko { color: #e11d48; }

/* optional comments */
.rg-more { border: 1px dashed #c7d2e0; border-radius: 10px; padding: 0 14px; }
.rg-more summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: #1366e8; font-size: 14.5px; }
.rg-more[open] { padding-bottom: 14px; }

.rg-has-error input, .rg-has-error select, .rg-has-error textarea { border-color: #e11d48; }
.rg-field .error-message, .rg-domain-error { margin-top: 6px; font-size: 13px; color: #e11d48; }

.rg-captcha { min-height: 78px; }
.rg-submit {
    width: 100%; height: 54px; border: 0; border-radius: 10px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: #1366e8; color: #fff; font: inherit; font-size: 17px; font-weight: 700;
    box-shadow: 0 10px 24px rgba(19, 102, 232, 0.28); transition: background .15s, transform .15s;
}
.rg-submit:hover { background: #0e56c6; transform: translateY(-1px); }
.rg-terms { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: #475569; text-align: center; }
.rg-terms a { font-weight: 600; }
.rg-secure { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; color: #64748b; }

/* flash messages (element flash/*: icon + title + text + close button, all SVGs unsized - the
   admin stylesheet that normally sizes them is not loaded on this page) */
.rg-card .message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; background: #eef4fe; color: #1f3b73; cursor: pointer; }
.rg-card .message.error { background: #fdecef; color: #b4123a; }
.rg-card .message.success { background: #e7f6ec; color: #1b7a3a; }
.rg-card .message svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.rg-card .message-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.7); }
.rg-card .message-icon svg { width: 14px; height: 14px; }
.rg-card .message-content { flex: 1; min-width: 0; }
.rg-card .message-title { display: block; font-weight: 700; }
.rg-card .message-close { flex-shrink: 0; width: 26px; height: 26px; padding: 4px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 6px; opacity: .7; }
.rg-card .message-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.6); }

/* success state */
.rg-done { text-align: center; }
.rg-done-icon { width: 76px; height: 76px; margin: 4px auto 18px; border-radius: 50%; background: #dce9fd; color: #1366e8; display: flex; align-items: center; justify-content: center; }
.rg-done-icon .rg-icon { width: 34px; height: 34px; }
.rg-done-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rg-done-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid #d5dce6; border-radius: 10px; font-weight: 600; }
.rg-done-links a:hover { text-decoration: none; border-color: #1366e8; background: #f4f8fe; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
    .rg-title { font-size: 44px; }
    .rg-grid { gap: 40px; }
}
@media (max-width: 960px) {
    .rg-page { padding: 20px 20px 40px; }
    .rg-grid { grid-template-columns: 1fr; }
    /* the form first on small screens - that is what people came for */
    .rg-card { order: -1; }
    .rg-title { font-size: 36px; }
    .rg-shot img { transform: none; }
}
@media (max-width: 560px) {
    .rg-page { padding: 14px 16px 32px; }
    .rg-top { flex-wrap: wrap; margin-bottom: 18px; }
    .rg-logo img { width: 150px; }
    .rg-top-links { width: 100%; justify-content: space-between; gap: 10px; font-size: 14px; }
    .rg-card { padding: 24px 18px 22px; border-radius: 16px; }
    .rg-card-title { font-size: 25px; }
    .rg-row { grid-template-columns: 1fr; }
    .rg-title { font-size: 30px; }
    .rg-lead { font-size: 16px; }
    .rg-suffix { padding: 0 8px; font-size: 12.5px; }
    .rg-captcha { transform: scale(0.92); transform-origin: left top; }
}
