:root {
    --reg-ink: #172033;
    --reg-muted: #637083;
    --reg-line: #dfe6ee;
    --reg-panel: #ffffff;
    --reg-soft: #f5f8fb;
    --reg-primary: #285f6c;
    --reg-primary-strong: #17394c;
    --reg-accent: #11a7bd;
    --reg-success: #25a852;
    --reg-warning: #f2a900;
    --reg-danger: #dc3545;
}

.registro-body {
    min-height: 100vh;
    margin: 0;
    color: var(--reg-ink);
    background:
        linear-gradient(135deg, rgba(23, 57, 76, 0.08), rgba(17, 167, 189, 0.08)),
        #eef2f5;
    font-family: "Segoe UI", Arial, sans-serif;
}

.registro-shell {
    width: min(1180px, calc(100vw - 32px));
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    background: var(--reg-panel);
    border: 1px solid rgba(23, 57, 76, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(23, 57, 76, 0.16);
    overflow: hidden;
}

.registro-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 34px;
    color: #ffffff;
    background: linear-gradient(155deg, var(--reg-primary-strong), var(--reg-primary));
}

.registro-brand img {
    width: 94px;
    height: auto;
}

.registro-aside-copy {
    margin-top: auto;
}

.registro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.registro-aside h1 {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 2.8vw, 2.55rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.registro-aside p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.6;
}

.registro-assurance {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.registro-main {
    min-width: 0;
    padding: 34px;
    background: var(--reg-soft);
}

.registro-card {
    background: var(--reg-panel);
    border: 1px solid var(--reg-line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 57, 76, 0.08);
    padding: 28px;
}

.registro-card h2,
.registro-card h3 {
    margin: 0 0 10px;
    color: var(--reg-ink);
    font-weight: 800;
    letter-spacing: 0;
}

.registro-card p {
    color: var(--reg-muted);
}

.registro-stagebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.registro-stage {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--reg-line);
    border-radius: 8px;
    color: var(--reg-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.registro-stage i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf4f7;
    color: var(--reg-primary);
}

.registro-stage.is-active {
    color: var(--reg-primary-strong);
    border-color: rgba(17, 167, 189, 0.45);
    box-shadow: inset 0 0 0 1px rgba(17, 167, 189, 0.2);
}

.registro-stage.is-done i {
    background: rgba(37, 168, 82, 0.12);
    color: var(--reg-success);
}

.registro-section {
    padding: 18px;
    border: 1px solid var(--reg-line);
    border-radius: 8px;
    background: #ffffff;
}

.registro-section + .registro-section {
    margin-top: 16px;
}

.registro-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--reg-primary-strong);
    font-size: 1rem;
    font-weight: 800;
}

.registro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.registro-actions .btn {
    min-height: 42px;
    border-radius: 6px;
    font-weight: 700;
}

.registro-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.registro-status.success {
    color: #16733a;
    background: rgba(37, 168, 82, 0.14);
}

.registro-status.warning {
    color: #805700;
    background: rgba(242, 169, 0, 0.18);
}

.registro-status.danger {
    color: #9f2431;
    background: rgba(220, 53, 69, 0.12);
}

.registro-status.info {
    color: var(--reg-primary);
    background: rgba(17, 167, 189, 0.12);
}

.registro-terms-box,
.registro-camera-box {
    max-height: 360px;
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--reg-line);
    border-radius: 8px;
    background: #fbfdff;
}

.registro-camera-box {
    max-height: none;
    text-align: center;
}

.registro-camera-box video,
.registro-camera-box canvas,
.registro-camera-box img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--reg-line);
}

.registro-flashes .alert {
    border-radius: 8px;
}

@media (max-width: 920px) {
    .registro-shell {
        width: min(100vw - 20px, 720px);
        grid-template-columns: 1fr;
        margin: 10px auto;
    }

    .registro-aside {
        padding: 26px;
    }

    .registro-aside-copy {
        margin-top: 10px;
    }

    .registro-main {
        padding: 22px;
    }

    .registro-stagebar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .registro-shell {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .registro-main,
    .registro-aside,
    .registro-card {
        padding: 20px;
    }

    .registro-stagebar {
        grid-template-columns: 1fr;
    }
}
