/* =============================================================
 FILE: Register.css
 PURPOSE: Global CSS include for Register, shared across multiple pages.

 USED BY:
   - /Registration/Register.php
 ============================================================= */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6fb;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --accent-blue: #1a3a6e;
    --accent-green: #0e9f6e;
    --accent-blue-light: rgba(26, 58, 110, 0.07);
    --accent-green-light: rgba(14, 159, 110, 0.07);
    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-muted: #8492a6;
    --border-subtle: rgba(26, 58, 110, 0.10);
    --border-medium: rgba(26, 58, 110, 0.18);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.02), 0 6px 12px rgba(0,0,0,0.03), 0 16px 32px rgba(0,0,0,0.04);
    --shadow-layered: 0 2px 4px rgba(0,0,0,0.02), 0 8px 16px rgba(0,0,0,0.04), 0 24px 48px rgba(0,0,0,0.06), 0 48px 96px rgba(0,0,0,0.08);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Playfair Display', Georgia, serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --input-bg: #f7f8fb;
    --input-border: rgba(26, 58, 110, 0.10);
    --bg-tertiary: #f4f6fb;
    --accent-primary: #1a3a6e;
    --border-color: rgba(26, 58, 110, 0.10);
    --card-bg: #ffffff;
    --hover-bg: transparent;
    --accent: var(--accent-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 40px 20px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

#nature-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 21px;
}

.container {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    text-align: center;
    animation: containerEntry 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes containerEntry {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.brand {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 7px;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    animation: fadeInDown 600ms cubic-bezier(0.4, 0, 0.2, 1) 200ms both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    animation: fadeInDown 600ms cubic-bezier(0.4, 0, 0.2, 1) 300ms both;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 21px;
    animation: fadeInDown 600ms cubic-bezier(0.4, 0, 0.2, 1) 350ms both;
}

.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-bottom: 25px;
    animation: fadeInDown 600ms cubic-bezier(0.4, 0, 0.2, 1) 400ms both;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-subtle);
    transition: background-color 400ms cubic-bezier(0.4, 0, 0.2, 1), border-color 400ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-dot.active {
    background: var(--accent-blue);
    box-shadow: 0 0 12px rgba(26, 58, 110, 0.3);
    transform: scale(1.3);
}

.step-dot.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(26, 58, 110, 0.3);
    animation: pulse-ring 1500ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.step-dot.completed {
    background: var(--accent-green);
}

.step-connector {
    width: 30px;
    height: 2px;
    background: var(--border-subtle);
    transition: background 360ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.step-connector.completed {
    background: var(--accent-green);
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInUp 600ms cubic-bezier(0.4, 0, 0.2, 1) 500ms both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.form-step.active {
    display: flex;
    animation: stepFadeIn 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-group {
    text-align: left;
}

label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.label-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 11px 17px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%234a5568' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px;
}

textarea {
    resize: none;
    height: 100px;
}

input[type="file"] {
    padding: 11px;
    cursor: pointer;
    border: 2px dashed var(--accent-blue);
    background: var(--accent-blue-light);
    transition: background 300ms cubic-bezier(0.4, 0, 0.2, 1), border-color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="file"]:hover {
    background: rgba(26, 58, 110, 0.12);
    border-color: var(--accent-blue);
}

input[type="file"]::file-selector-button {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 9px 17px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    margin-right: 11px;
    transition: background 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="file"]::file-selector-button:hover {
    background: #1a4a8f;
}

.corporate-fields {
    display: none;
    margin-top: 15px;
    padding: 23px;
    background: var(--accent-blue-light);
    border-radius: 15px;
    border: 2px solid rgba(26, 58, 110, 0.2);
    text-align: left;
}

.corporate-fields.show {
    display: block;
    animation: slideDown 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.corporate-fields h3 {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-bottom: 21px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.corporate-fields h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    text-align: left;
    padding: 15px;
    background: rgba(26, 58, 110, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-group:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-blue);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
}

.btn {
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
    flex: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 480ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.btn-primary:hover {
    background: #1a4a8f;
    transform: translateY(-3px);
    box-shadow:
        0 2px 4px rgba(26, 58, 110, 0.09),
        0 4px 16px rgba(26, 58, 110, 0.25),
        0 16px 36px rgba(26, 58, 110, 0.13);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.hidden { display: none !important; }

.login-link {
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: fadeInUp 600ms cubic-bezier(0.4, 0, 0.2, 1) 600ms both;
}

.login-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.login-link a:hover {
    color: #1a4a8f;
    text-decoration: underline;
}

.auth-browser-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
    margin-top: 10px;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.captcha-container {
    margin-bottom: 12px;
}

.captcha-container .captcha-wrapper {
    margin-top: 8px;
}

.captcha-container .captcha-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.captcha-container .captcha-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* Match Server/Files/Captcha-Handler.php PNG width (~200px); do not stretch to full form row */
.captcha-container .captcha-image-wrapper {
    flex: 0 0 auto;
    max-width: 220px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.captcha-container .captcha-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.captcha-container .captcha-refresh-btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 7px;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.captcha-container .captcha-refresh-btn:hover {
    background: #1a4a8f;
}

.captcha-container .captcha-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 2px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.captcha-container .captcha-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.10);
}

.captcha-container .captcha-input::placeholder {
    letter-spacing: normal;
}

.captcha-container .captcha-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 5px;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.step-label span {
    color: var(--accent-blue);
    font-weight: 600;
}

.info-box {
    background: var(--accent-blue-light);
    border: 2px solid rgba(26, 58, 110, 0.2);
    border-radius: var(--radius-md);
    padding: 17px;
    margin-bottom: 14px;
    text-align: left;
}

.info-box h4 {
    color: var(--accent-blue);
    margin: 0 0 11px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 21px;
    margin-bottom: 25px;
}

.warning-box h4 {
    color: #f59e0b;
    margin: 0 0 7px 0;
    font-size: 1.1rem;
}

.warning-box p {
    color: #b45309;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.resource-btn {
    padding: 11px 17px;
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    background: rgba(26, 58, 110, 0.03);
    cursor: pointer;
    transition: border-color 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.resource-btn:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.resource-btn.selected {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(26, 58, 110, 0.3);
}

.resource-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resource-icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 4px;
}

.footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    margin: auto auto 0 auto;
    text-align: center;
    padding: 21px 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer p {
    color: var(--text-muted);
}

.footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.registration-mode-selector {
    display: flex;
    gap: 11px;
    margin-bottom: 21px;
    animation: fadeInDown 600ms cubic-bezier(0.4, 0, 0.2, 1) 380ms both;
}

.mode-card {
    flex: 1;
    padding: 17px 14px;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(26, 58, 110, 0.02);
    cursor: pointer;
    transition: border-color 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
}

.mode-card:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.mode-card.active {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
    box-shadow: 0 0 12px rgba(26, 58, 110, 0.15);
}

.mode-card-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 6px;
}

.mode-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.mode-card.active .mode-card-title {
    color: var(--accent-blue);
}

.mode-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mode-card-badge {
    position: absolute;
    top: -10px;
    right: -6px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    background: var(--accent-green);
    padding: 3px 10px;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    box-shadow:
        0 2px 4px rgba(14, 159, 110, 0.15),
        0 8px 16px rgba(14, 159, 110, 0.1),
        0 24px 48px rgba(14, 159, 110, 0.06);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

.quick-info-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 17px;
    margin-bottom: 14px;
    text-align: left;
    animation: stepFadeIn 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.quick-info-box p {
    color: #fbbf24;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.quick-info-box p strong {
    color: #f59e0b;
}

.selection-trigger {
    width: 100%;
    padding: 11px 17px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.selection-trigger:hover {
    border-color: var(--accent-blue);
}

.trigger-arrow {
    color: var(--text-muted);
}

.selection-modal {
    background: #ffffff;
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-layered);
}

.selection-modal-header {
    border-bottom-color: var(--border-subtle);
}

.selection-modal-header h3 {
    color: #000000;
    font-family: var(--font-display);
}

.selection-modal-close {
    color: var(--text-muted);
    font-family: inherit;
}

.selection-modal-close:hover {
    background: transparent;
    color: #000000;
}

.selection-modal-search input {
    background: var(--bg-secondary);
    border-color: var(--border-subtle);
    color: #000000;
    font-family: inherit;
}

.selection-modal-search input:focus {
    border-color: var(--accent-blue);
}

.selection-modal-search input::placeholder {
    color: var(--text-muted);
}

.selection-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
}

.selection-category-header:hover {
    background: transparent;
}

.selection-category-title {
    color: var(--text-secondary);
}

.selection-category-count {
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.selection-category-chevron {
    color: var(--text-muted);
}

.selection-item {
    color: #000000;
    font-family: inherit;
}

.selection-item:hover {
    background: transparent;
    color: #000000;
}

.selection-item.selected {
    background: var(--accent-blue);
    color: #ffffff;
}

.selection-no-results {
    color: var(--text-muted);
}

.selection-badge {
    background: var(--accent-blue);
    color: #ffffff;
    font-family: inherit;
}

.pace-warning-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), visibility 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pace-warning-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.pace-warning-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.06),
        0 48px 96px rgba(0, 0, 0, 0.08);
    max-width: 440px;
    width: 90%;
    padding: 28px 26px 24px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pace-warning-overlay.visible .pace-warning-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pace-warning-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 220ms cubic-bezier(0.4, 0.0, 0.2, 1), color 220ms cubic-bezier(0.4, 0.0, 0.2, 1), background 220ms cubic-bezier(0.4, 0.0, 0.2, 1);
    line-height: 1;
    padding: 0;
    font-family: var(--font-body);
}

.pace-warning-close:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.pace-warning-icon {
    font-size: 2.2rem;
    display: block;
    text-align: center;
    margin-bottom: 14px;
}

.pace-warning-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 11px;
}

.pace-warning-body {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    text-align: center;
    margin-bottom: 6px;
}

.pace-warning-body strong {
    color: #d97706;
    font-weight: 600;
}

.pace-warning-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 30px 23px;
        max-width: 520px;
    }
    h2 { font-size: 1.85rem; }
    .info-box {
        padding: 14px;
    }
    .corporate-fields {
        padding: 21px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 35px 23px;
    }
    h2 { font-size: 1.75rem; }
    .step-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.asset-mode-tabs {
    display: flex;
    gap: 8px;
    margin: 10px 0 12px;
}
.asset-tab {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background: var(--input-bg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-secondary);
}
.asset-tab.active {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    font-weight: 600;
}
.preset-grid {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}
.preset-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.preset-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.preset-thumb {
    padding: 6px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preset-thumb img {
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: cover;
    border-radius: 4px;
}
.preset-thumb.flag-preset img {
    max-height: 52px;
}
.preset-thumb.selected {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px var(--accent-blue-light);
}
@media (max-width: 520px) {
    .preset-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .preset-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.register-trust-copy {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0 0 18px;
    padding: 11px 14px;
    background: var(--accent-blue-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}
.register-proton-hint {
    margin-top: -4px;
}
.has-required-star .req-icon {
    color: var(--accent-green);
    font-weight: 600;
    margin-left: 2px;
}
.pf-password-row .pf-password-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pf-password-row .pf-password-field-wrap input[type="password"],
.pf-password-row .pf-password-field-wrap input[type="text"] {
    flex: 1;
    padding-right: 44px;
}
.pf-toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 6px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}
.pf-toggle-pw:hover {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}
.pf-strength-meter {
    height: 5px;
    background: rgba(26, 58, 110, 0.12);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.pf-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(220, 76, 70, 0.85), rgba(232, 185, 35, 0.95), rgba(14, 159, 110, 0.95));
    transition: width 280ms var(--transition);
}
.pf-strength-fill[data-strength="5"] {
    background: rgba(14, 159, 110, 0.95);
}
.pf-meter-caption {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    min-height: 1.2em;
}
.pf-match-line {
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 1.2em;
}
.pf-match-line[data-match="yes"] {
    color: var(--accent-green);
}
.pf-match-line[data-match="no"] {
    color: #b42318;
}
.checkbox-group.mfa-strong {
    padding: 12px 14px;
    background: rgba(14, 159, 110, 0.09);
    border: 1px solid rgba(14, 159, 110, 0.28);
    border-radius: var(--radius-md);
    margin-top: 10px;
}
.easy-registration-root .easy-subpanel {
    animation: pf-fade-in 0.25s ease-out;
}
@keyframes pf-fade-in {
    from { opacity: 0.35; }
    to { opacity: 1; }
}
