/**
 * Estilos compartidos para páginas públicas (login, registro, verificación)
 */
:root {
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --page: #eef2f7;
    --brand: #1e3a8a;
    --brand-hover: #1d4ed8;
    --accent: #2563eb;
    --danger: #dc2626;
    --success: #059669;
    --warning: #d97706;
}

* { box-sizing: border-box; }

body.simplex-public-page {
    font-family: 'Inter', system-ui, sans-serif;
    background:
        radial-gradient(1200px 500px at 50% -10%, #dbe4f5 0%, var(--page) 55%);
    min-height: 100vh;
    margin: 0;
    padding: 48px 16px;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.registration-container {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
}

.registration-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
}

.simplex-logo-img {
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto 0.75rem;
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
}

.registration-subtitle {
    font-size: 1.35rem;
    margin: 0;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.registration-form {
    padding: 0 2rem 2rem;
}

.form-section {
    padding: 0 0 1.25rem;
    margin-bottom: 1.15rem;
    border: none;
    border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0.75rem;
}

.section-title {
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.form-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    text-align: center;
    line-height: 1.5;
}

.simplex-public-page .form-control {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.72rem 0.9rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}

.simplex-public-page .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.simplex-public-page .form-label {
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
}

.required-indicator { color: var(--danger); margin-left: 0.12rem; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--brand);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: background .15s ease, transform .15s ease;
}

.btn-submit:hover {
    background: var(--brand-hover);
    color: #fff;
}

.btn-submit:active { transform: translateY(1px); }

.simplex-public-page .alert {
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
}

.simplex-public-page .alert-danger { background: #fef2f2; color: var(--danger); }
.simplex-public-page .alert-success { background: #ecfdf5; color: var(--success); }
.simplex-public-page .alert-warning { background: #fffbeb; color: var(--warning); }

.simplex-public-page .text-danger { font-size: 0.8rem; }

@media (max-width: 768px) {
    body.simplex-public-page { padding: 20px 12px; }
    .registration-header, .registration-form { padding-left: 1.25rem; padding-right: 1.25rem; }
    .registration-subtitle { font-size: 1.15rem; }
    .simplex-logo-img { max-width: 180px; max-height: 60px; }
}
